CS 139 Chapter 2
In C++11, if you want an integer literal to be treated as a long long int, you can append ________ at the end of the number.
LL
The data type used to declare variables that can hold real numbers is
float
Which of the following must every C++ program have?
function main
The preprocessor inserts the entire contents of the file into the program at the point it encounters this.
the #include directive
Escape sequences are always stored internally as a single character.
True
Floating point constants are normally stored in memory as doubles.
True
One of the problems of portability is the lack of common sizes of data types on all machines.
True
Preprocessor directives are not C++ statements.
True
The compiler doesn't actually see the #include directive. Instead it sees the code that was inserted by the preprocessor, just as if the programmer had typed it there.
True
When string literals are sent to cout they are printed exactly as they appear inside the quotation marks.
True
short and short int are the same data type.
True
The preprocessor executes after the compiler.
False
Unsigned data types can store positive or negative values.
False
The word in the brackets of an include directive specifies
a file containing code that is copied into the program at that point.
A preprocessor directive starts with #. Preprocessor directives are carried out _______
just before a program is processed by the compiler.
Which of the following data types allows you to store the largest value?
long long int
In memory, C++ automatically places a(n) ________ at the end of string literals which ________.
null terminator, marks the end of the string