Exam 3: Expressions and Interactivity

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

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

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

C

The cin object must be followed by

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

D

Hand tracing a program is

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

C

The following statement sets the value of total to -3. total -= 3;

(True/False)
5.0/5
(34)

Program code that can be evaluated to a value is called a(n)

(Multiple Choice)
4.9/5
(38)

To use stream manipulators, you should include the ________ header file.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.7/5
(32)

The cin object lets the user enter a string that contains embedded blanks.

(True/False)
4.8/5
(34)

When an operator's operands are of different data types, such as int and double, C++ automatically converts one of them so that they are the same data type.

(True/False)
4.8/5
(39)

When a C++ expression is evaluated, binary operations are performed before unary operations.

(True/False)
5.0/5
(37)

What does the following C++ expression evaluate to? 6 - 6 / 3 + 3

(Multiple Choice)
4.7/5
(35)

The following C++ statement will assign 1.5 to the result variable. int result = 3.0 / 2.0;

(True/False)
4.7/5
(36)

Which of the following will allow an entire line of text to be read into a string object, even if it contains embedded blanks?

(Multiple Choice)
4.9/5
(31)

In C++, the 5 basic arithmetic operators are addition (+), subtraction (-), multiplication (*), division (/), and exponentiation (^).

(True/False)
4.9/5
(36)

In C++, a value can be raised to a power by using

(Multiple Choice)
4.8/5
(33)

The following pair of C++ statements is legal. const double taxRate; taxRate = .05;

(True/False)
4.8/5
(37)

The cin object can be used to input more than one value in a single statement.

(True/False)
4.9/5
(50)

To use the sqrt() function, or other mathematical library functions, you must #include the ________ header file in your program.

(Multiple Choice)
4.8/5
(33)

If the value of dollars is 5.0, the following statement will output 5.00 to the monitor: cout << fixed << showpoint << setprecision(4) << dollars << endl;

(True/False)
4.8/5
(41)

Which of the following statements will assign number a value from 90 - 100.

(Multiple Choice)
4.8/5
(39)
Showing 1 - 20 of 40
close modal

Filters

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