Multiple Choice
Which of the following statements doubles the value stored in answer?
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
Correct Answer:
Verified
Related Questions
Q30: When an arithmetic expression contains two or
Q31: When converting some algebraic expressions to C++,
Q32: The only difference between C-strings and string
Q33: Which of the following statements about named
Q34: The statement cout << setw(4) << num4
Q35: The following 4 lines of C++ code,
Q36: The following statement sets sum1, sum2, and
Q37: In any program that uses the cin
Q38: Operator associativity is either left to right
Q40: When an operator has two operands of