Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Solve the equation. 4(x + 1) 4 - 13(x + 1) 2 = -9

Answered: 1 week ago