Multiple Choice
The following 4 lines of C++ code, use strings. Which of the following statements is /are true?
A) The C- string is assigned a value correctly, but the string object is not.
B) The string object is defined incorrectly because no size is given for it.
C) The string object is assigned a value correctly, but the C- string is not.
D) The 2 string definitions are correct, but the 2 assignment statements are wrong.
E) All 4 lines of code are correct.
Correct Answer:

Verified
Correct Answer:
Verified
Q6: What does the following C++ expression evaluate
Q7: Which of the following will allow an
Q9: The statement cout << setw(4)<< num4 <<
Q12: The setw manipulator is used to set
Q12: The following C++ statement will assign 1.5
Q13: Hand tracing a program is<br>A)a program design
Q14: To use stream manipulators, you should include
Q16: The following pair of C++ statements is
Q19: If the value of dollars is 5.0,
Q29: The following two expressions evaluate to the