2012 – Deitel) | Instructor’s Solutions
Manual PDF
What is a C++ program? - answer-a collection of functions
Every C++ program has a function called____ - answer-main
What does a single line comment start with? - answer-a pair of symbols // anywhere in the line
what symbols are multiline comments enclosed between? - answer-/* and */
True or False: The compiler ignores comments - answer-True.
Can reserved words be redefined? - answer-no
Can reserved words be used as identifiers? - answer-no
True or False: ALL reserved words in C++ consist of lowercase letters - answer-True
What are identifiers? - answer-names of things
What does a C++ identifier consist of? - answer-letters, digits, and underscores and must begin
1
, with a letter or underscore.
What are whitespaces? - answer-blanks, tabs, and newline characters
What is a data type? - answer-a set of values together with a set of allowed operations
What are the three categories of C++ data types? - answer-simple, structured, and pointers
9 categories of integral data types - answer-char, short, int, long, bool, unsigned char, unsigned
short, unsigned int, unsigned long, long long, and unsigned long long.
int data type values - answer--2^31 to 2^31 - 1
bool data type - answer-Represents values that are true or false
What are the most common character sets? - answer-1. ASCII, which has 128 values, and
2. EBCDIC, which has 256 values
What is a collating sequence? - answer-the sequence of a character that is its preset number in
the character data set.
What are the three data types to manipulate decimal numbers? - answer-float, double, and long
double
How much memory is allocated for the "float" data type? What is the range of numbers it
represents? - answer-4 bytes.
2