Multiple Choice
Which of the following is not true about bool values and how they're output with the output stream?
A) The old style of representing true/false values used -1 to indicate false and 1 to indicate true.
B) A bool value outputs as 0 or 1 by default.
C) Stream manipulator boolalpha sets the output stream to display bool values as the strings "true" and "false".
D) Both boolalpha and noboolalpha are "sticky" settings.
Correct Answer:

Verified
Correct Answer:
Verified
Q15: If unexpected data is processed in an
Q16: Which of the following is an illegal
Q17: Which of the following is a valid
Q18: The good member function will return false
Q19: The putback member function returns to the
Q21: 2.1 Q2 [C++11] Which of the following
Q22: What will be output by the following
Q23: Which of the following statements restores the
Q24: Overloaded operators can be used to test
Q25: Which of the following outputs does not