Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) left to right order.
B) operator precedence.
C) operator associativity.
D) the programmer.
E) the compiler.
Correct Answer
verified
Multiple Choice
A) A named constant must be initialized with a value at the time it is declared.
B) The identifier name of a named constant can only contain capital letters and underscores.
C) The initial value of a named constant, cannot be changed during the program execution.
D) All 3 of the above statements are True.
E) Statements A and C are True, but B is not.
Correct Answer
verified
Multiple Choice
A) The string object is defined incorrectly because no size is given for it.
B) The 2 string definitions are correct, but the 2 assignment statements are wrong.
C) The string object is assigned a value correctly, but the C-string is not.
D) The C-string is assigned a value correctly, but the string object is not.
E) All 4 lines of code are correct.
Correct Answer
verified
Multiple Choice
A) top to bottom.
B) front to back.
C) right to left.
D) inside to outside.
E) nothing else; it is always left to right.
Correct Answer
verified
Multiple Choice
A) An input device
B) The cin object
C) The cout object
D) A preprocessor
E) Nothing
Correct Answer
verified
Multiple Choice
A) Some operators
B) Parentheses
C) Operands
D) Associativity
E) Nothing
Correct Answer
verified
Multiple Choice
A) 5 - 10
B) 0 - 15
C) 5 - 15
D) 10 - 15
E) none of the above.
Correct Answer
verified
Multiple Choice
A) answer += 2;
B) answer *= 2;
C) answer = answer * 2;
D) All three of the above
E) Both B and C, but not A
Correct Answer
verified
Multiple Choice
A) the iostream header file.
B) the fstream header file.
C) >> and << operators.
D) named constants.
E) none of the above.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) values, exponents
B) operators, calculations
C) operators, operands
D) operators, parentheses
E) operands, parentheses
Correct Answer
verified
Multiple Choice
A) outputs the value of num4 rounded to 4 decimal places.
B) outputs "setw(4) " before the value in the variable num4.
C) outputs the first 4 digits of the number stored in num4.
D) outputs the value stored in num4 four times.
E) does none of above.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) cin
B) setField
C) setw
D) iomanip
E) width
Correct Answer
verified
Multiple Choice
A) cin
B) cout
C) keyboard buffer
D) standard input
E) dataIn
Correct Answer
verified
Multiple Choice
A) static_cast<double>(5/2)
B) static_cast<double>(5) /2
C) 5/static_cast<double>(2)
D) All three of the above
E) Both B and C, but not A
Correct Answer
verified
Showing 21 - 40 of 40
Related Exams