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
(70)

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

(True/False)
5.0/5
(83)

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

(Multiple Choice)
4.7/5
(76)

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

(Multiple Choice)
4.8/5
(65)

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
(76)

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
(89)

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

(True/False)
4.9/5
(76)

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

(Multiple Choice)
4.8/5
(82)

A variable must be defined

(Multiple Choice)
4.9/5
(90)

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

(Multiple Choice)
4.7/5
(74)

The expression 7 / 2 evaluates to

(Multiple Choice)
4.8/5
(82)

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

(Multiple Choice)
4.7/5
(83)

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

(Multiple Choice)
4.7/5
(77)

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

(Multiple Choice)
4.7/5
(75)

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

(Multiple Choice)
4.9/5
(86)

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

(Multiple Choice)
4.9/5
(89)

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

(Multiple Choice)
4.9/5
(72)

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

(True/False)
5.0/5
(73)

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

(Multiple Choice)
5.0/5
(68)

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

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

Filters

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