CO SCI C++ CH 2
a character literal is enclose in _____quotation marks, whereas a string literal is enclosed in ____ quotation marks.
single, double
the float data type is considered ____ precision, and double data type is considered ______ precision.
single, double
this function in C++ allows you to identify how many bytes of storage on your computer system an nteger data value requires.
sizeof
the first step in using the sting class is to #include the ______header file.
string
in programming terms, a group of characters inside set of quotations marks is called a(n):
string literal
in C++ program, two slash marks (//) indicate:
the beginning of a comment
in C++11, if you wnat an integer literal to be treated as a long long int, you can append ___ at the end of the #.
LL
which character signifies the beginning of an escape sequence?
\
which data type requires only one byte of storage?
char
the ______ is/are used to display information on the computer's screen
cout object
which of the following defines a double-precision floating point variable named paycheck?
double paycheck
C++11 introduces an alternative way to define variable, using the template key word and an initialization value.
false
a variable called "average" should be declared as an integer data type because it will probably hold data that contains decimal places.
false
escape sequences are always stored internally as a single character
false
if you do not follow a consistent programming style, your programs will generate compiler errors.
false
the C++ language requires that you give variables names that indicate what the variables are used for.
false
these are used to declare variables that can hold real numbers.
floating point data types
every complete C++ program must have a ______.
function named main
in C++11, the _____ tells the compiler to determine the variable's data type from the initialization value.
auto key word
a variable whose value can be either true of false is of this data type
bool
You must have a ______for every variable you intend to use in a program.
definition
besides decimal, two other number systems you might encounter in C++ programs are:
hexadecimal and octal
the numeric data types in C++ can be broken into two general categories
integer and floating point
these are data items whose values do not change while the program is running.
literals
in memory, C++ automatically places a ______ at the end of strings literals
null terminator
character constants in C++ are always enclosed in ______.
single quotation marks
C++ does not have a built in data type for storing string of characters
true
escape sequence are always stored internally as a single character.
true
when typing in your source code into the computer, you must be very careful since most of your C++ instructions, header files, and variables names are case sensitive.
true
when writing long integer literals or long long integers in C++11, you can use either an uppercase or lower case L.
true
______ represent storage locations in the computer's memory.
variables
3dGraph
would be an illegal variable name