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.


a. The old style of representing true/false values used -1 to indicate false and 1 to indicate true.

Computer Science & Information Technology

You might also like to view...

A(n) _______ is the letter sequence of a variable’s name.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is a simple protocol that is used by applications that contain their own connection-oriented timeout values and retry counters, similar to those provided by TCP?

A. UDP B. DoS C. RTO D. MSS

Computer Science & Information Technology

Which of the following is an example of a logical test?

A) 6*8 B) =NOW( ) C) =SUM(B5:D5 ) D) D5 > 45

Computer Science & Information Technology

Programming errors, sometimes referred to as bugs, are unique to Ruby programming.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology