Exam 2: Introduction to C Plus Plus

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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

(Multiple Choice)
4.8/5
(29)

The following two statements could be used interchangeably in a C++ program. // Program Payroll /* Program Payroll */

(True/False)
5.0/5
(39)

________ are data items whose values cannot change while the program is running.

(Multiple Choice)
4.7/5
(31)

A C++ character literal is enclosed in ______ quotation marks, whereas a string literal is enclosed in ______ quotation marks.

(Multiple Choice)
4.8/5
(29)

If a variable is defined as int sum; it may be written in the program code as sum or Sum, but not SUM.

(True/False)
4.8/5
(33)

If number is an int variable, both of the following statements will print out its value: cout << number; cout << "number";

(True/False)
4.8/5
(41)

The following statements both declare the variable num to be an integer. int num; INT num;

(True/False)
4.9/5
(35)

Which of the following will cause the next output to begin on a new line?

(Multiple Choice)
4.8/5
(36)

A variable must be defined

(Multiple Choice)
4.9/5
(42)

In a C++ program, two slash marks ( // ) indicate the beginning of

(Multiple Choice)
4.7/5
(31)

The expression 7 / 2 evaluates to

(Multiple Choice)
4.8/5
(40)

What value will be assigned to the variable number by the following statement? Int number = 3.75;

(Multiple Choice)
4.8/5
(35)

Which of the following keywords is/are the names of C++ data types?

(Multiple Choice)
4.7/5
(30)

What literal(s) appear in the following C++ statement? Int number = 4 + 8;

(Multiple Choice)
4.7/5
(34)

A ________ variable can hold only one of two values: True or false.

(Multiple Choice)
4.9/5
(40)

________ must be included in a program in order to use the cout object.

(Multiple Choice)
4.8/5
(35)

C++ automatically places ________ at the end of a string literal.

(Multiple Choice)
4.9/5
(31)

The following two C++ statements perform the same operation. wages = regPay + overTime; regPay + overTime = wages;

(True/False)
5.0/5
(34)

An operation that copies a value into a variable is called a(n) ________ operation.

(Multiple Choice)
4.9/5
(30)

In programming terms, a group of characters inside a set of double quotation marks (" ") is called

(Multiple Choice)
5.0/5
(39)
Showing 21 - 40 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)