Exam 3: Expressions and Interactivity

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

The following two statements will assign the same value to result. The following two statements will assign the same value to result.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

True

When an arithmetic expression contains two or more different operators, such as * and +, the order in which the operations is done is determined by

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

E

Operator associativity is either left to right or

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

B

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

(Multiple Choice)
5.0/5
(38)

The following two expressions evaluate to the same thing: c + a * b c + (a * b)

(True/False)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(38)

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

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

(True/False)
4.8/5
(32)

The statement cout << setw(4)<< num4 << " ";

(Multiple Choice)
4.8/5
(39)

The following 4 lines of C++ code, use strings. The following 4 lines of C++ code, use strings.   Which of the following statements is /are true? Which of the following statements is /are true?

(Multiple Choice)
4.8/5
(38)

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

The setw manipulator is used to set the precision of a number.

(True/False)
4.8/5
(29)

Hand tracing a program is

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
5.0/5
(37)

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

(True/False)
4.9/5
(33)

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

(True/False)
4.8/5
(43)

When an operator has two operands of different data types, C++ always converts them both to double before performing the operation.

(True/False)
5.0/5
(39)

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

(True/False)
4.8/5
(37)

The object causes data to be input from the keyboard.

(Multiple Choice)
4.7/5
(34)

Which of the following statements about named constants is/are true?

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

Filters

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