Question: What will this code output? float A2 = 2.0, B2 = 3.0; A2 = A2 B2; cout < < A2 + 1.0; -1.0 0 2.0

What will this code output?

float A2 = 2.0, B2 = 3.0; A2 = A2 B2; cout << A2 + 1.0;

-1.0

0

2.0

1.0

What variable type would be best for storing a person's gender?

char

int

double

float

Which computer technology is the oldest?

integrated circuits

vacuum tubes

transistor

quantum computing

You need to have the user type in their age which will be stored in the variable Age. What command should you write?

cout << Age;

cin << Age;

cout >> Age;

cin >> Age;

What variable type would be best for storing a person's weight in pounds, keeping in mind to conserve memory?

int

char

short int

unsigned int

What will this code output?

short int Unicorn = 50; Unicorn = Unicorn 25; cout << Unicorn 1; cout << Unicorn + 1;

24

25

26

2426

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!