Exam 3: Expressions and Interactivity

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is the value of number after the following statements execute? Int number = 10; Number += 5; Number -= 2; Number *= 3;

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

C

Associativity is either right to left or

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

C

What is the value of cube after the following code executes? Double cube, side; Side = 5.0; Cube = pow(side, 3.0);

Free
(Multiple Choice)
4.8/5
(48)
Correct Answer:
Verified

C

When the final value of an expression is assigned to a variable, it will be converted to

(Multiple Choice)
4.8/5
(32)

What is true about the following statement? cout << setw(4) << num4 << " ";

(Multiple Choice)
5.0/5
(37)

Which of the following statements will allow the user to enter three values to be stored in variables length, width, and height, in that order?

(Multiple Choice)
4.7/5
(37)

Which statement is equivalent to the following? Number += 1;

(Multiple Choice)
4.9/5
(29)

When a user types values at the keyboard, those values are first stored

(Multiple Choice)
4.7/5
(39)

Which of the following statements will read an entire line of input into the string object, address?

(Multiple Choice)
4.7/5
(34)

When C++ is working with an operator, it strives to convert operands to the same type. This is known as

(Multiple Choice)
4.9/5
(38)

Arithmetic operators that share the same precedence have right to left associativity.

(True/False)
4.7/5
(25)

Which statement is equivalent to the following? Number = number * 2;

(Multiple Choice)
4.9/5
(35)

What is the value of average after the following code executes? Double average; Average = 1.0 + 2.0 + 3.0 / 3.0;

(Multiple Choice)
4.7/5
(33)

When a variable is assigned a number that is too large for its data type, it

(Multiple Choice)
4.7/5
(41)

In C++, it is impossible to display the number 34.789 in a field of 9 spaces with 2 decimal places of precision.

(True/False)
4.9/5
(36)

When the fixed manipulator is used, the value specified by the setprecision manipulator will be the number of digits to appear after the decimal point.

(True/False)
4.9/5
(28)

The only difference between the get function and the >> operator is that get reads the first character typed, even if it is a space, tab, or the [Enter] key.

(True/False)
4.8/5
(34)

The __________ causes a program to wait until information is typed at the keyboard and the [Enter] key is pressed.

(Multiple Choice)
4.8/5
(26)

What is the value of x after the following code executes? Int x; X = 3 / static_cast<int>(4.5 + 6.4);

(Multiple Choice)
4.7/5
(27)

Which of the following functions tells the cin object to skip one or more characters in the keyboard buffer?

(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 45
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)