Exam 3: Expressions and Interactivity

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

What will the value of x be after the following statements execute? What will the value of x be after the following statements execute?

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.7/5
(38)

Which line in the following program will cause a compiler error? Which line in the following program will cause a compiler error?

(Multiple Choice)
4.9/5
(33)

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

(True/False)
4.9/5
(38)

Which line in the following program will cause a compiler error? Which line in the following program will cause a compiler error?

(Multiple Choice)
4.8/5
(34)

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
(39)

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

(True/False)
4.8/5
(47)

When converting some algebraic expressions to C++, you may need to insert ________ that do not appear in the algebraic expression.

(Multiple Choice)
4.7/5
(40)

The ________ operator always follows the cin object, and the ________ operator follows the cout object.

(Multiple Choice)
5.0/5
(38)

What is the value of average after the following code executes? What is the value of average after the following code executes?

(Multiple Choice)
4.9/5
(38)

This function tells the cin object to skip one or more characters in the keyboard buffer.

(Multiple Choice)
5.0/5
(40)

This manipulator causes the field to be left-justified with padding spaces printed to the right.

(Multiple Choice)
4.9/5
(37)

If you want to know the length of the string that is stored in a string object, you can call the object's size member function.

(True/False)
4.8/5
(30)

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

(Multiple Choice)
4.8/5
(36)

Which is true about the following statement? Which is true about the following statement?

(Multiple Choice)
4.7/5
(30)

The fixed manipulator causes a number to be displayed in scientific notation.

(True/False)
4.8/5
(35)

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.7/5
(35)

This stream manipulator forces cout to print the digits in fixed-point notation.

(Multiple Choice)
4.8/5
(42)

Assume that x is an int variable. What value is assigned to x after the following assignment statement is executed? Assume that x is an int variable. What value is assigned to x after the following assignment statement is executed?

(Multiple Choice)
4.8/5
(40)

You can use these to override the rules of operator precedence in a mathematical expression.

(Multiple Choice)
4.8/5
(31)
Showing 21 - 40 of 44
close modal

Filters

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