C++ CHAP 2

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

This control sequence is used to skip over to the next horizontal tab stop.

\t

The ________ causes the contents of another file to be inserted into a program.

# include directive

Which one of the following would be an illegal variable name?

Correct A. 3dGraph b. itemsorderedforthemonth c. dayOfWeek d. _employee_num e. June1997

________ must be included in any program that uses the cout object.

The header file iostream

What will the following code display? int number = 7; cout << "The number is " << "number" << endl;

The number is number

________ represent storage locations in the computer's memory.

Variables

Which escape sequence causes the cursor to move to the beginning of the current line?

\r

The ________ is/are used to display information on the computer's screen.

cout object

Every complete C++ program must have a __________.

function named main

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

A statement that starts with a # is called a:

preprocessor directive

What will the following code display? int x = 0, y = 1, z = 2; cout << x << y << z << endl;

012

A variable whose value can be either true or false is of this data type.

bool

Which data type typically requires only one byte of storage?

char


Ensembles d'études connexes

Science 1083, 4th Edition, 2nd Checkup

View Set

Final Review Quizzes/Exam Questions

View Set

Fundamentals of Nursing- Quiz 2 (Exam 1 Material)

View Set

STS OR Real Estate Section 2: Agency

View Set