GRADED A+
✔✔After the first character you may use alphabetic characters, numbers, or underscore
characters.
True or False - ✔✔True
✔✔The following definitions in the same program is syntactically correct.
int MyVar;
int myVar;
True or False - ✔✔True
✔✔Unsigned integers always treat the sign bit as a magnitude part of the number.
True or False - ✔✔True
✔✔The constant 0x75A is base 8.
True or False - ✔✔False
✔✔The following will compile:
char c = "a";
True or False - ✔✔False
✔✔Classic C-Strings end with the null terminator, the '\0" character.
True or False - ✔✔True
✔✔A floating-point number type defaults to being signed.
True or False - ✔✔True
✔✔For bool data types, false is represented by 0 and true is represented by any non-
zero number.
True or False - ✔✔True
✔✔In C++ the size of a type is always the same on different platforms.
, True or False - ✔✔False
✔✔In C++ the following relationship regarding type size is always true for all platforms.
sizeof(short) <= sizeof(int) <= sizeof(long)
True or False - ✔✔True
✔✔The following C++ expression produces a float result.
True or False - ✔✔False
✔✔The following statement displays:
cout << 1 % 4;
0, 1, 4, 0.25 - ✔✔1
✔✔The _________ causes a program to wait until information is typed at the keyboard
and the Enter key is pressed.
Output stream
cin object
cout object
Preprocessor - ✔✔cin object
✔✔The ______ operator always follows the cin object, and the ______ operator follows
the cout object.
binary, unary
++, --
>>, <<
<<, >> - ✔✔>>, <<
✔✔When this operator is used with string operands it concatenates them, or joins them
together.
&
*
%
+ - ✔✔+