Chapter 1: In Class Quiz
What will the following code display? cout << "Four\n" << "score\n"; cout << "and" << "\nseven"; cout << "\nyears" << "ago" << endl;
Four score and seven years ago
What will the following code display? int number = 23 ; cout << "The number is" << " number" << endl;
The number is number
For every opening brace ( { ) in a C++ program, there must be a ___
closing brace
The ___ is (are) used to display information on the computer's screen
cout object
In a cout statement, _____ or _____ will advance the output position to the beginning of the next line
endl or \n
Every complete C++ program must have a ____
funtion named main
A statement that starts with a hashtag (or pound) sympol (#) is called a ___
preprocessor directive
In the following statement, the characters Hello! are a(n) cout << "Hello!";
string literal
In a C++ program, two slash marks ( // ) indicate
the beginning of a comment
A(n) ____ represents a storage location in the computer's memory.
variable