Exam 2: Introduction to C Plus Plus

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

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

(Multiple Choice)
4.9/5
(26)

Of the following, which is a valid C++ identifier?

(Multiple Choice)
4.9/5
(39)

C++ 11 introduces an alternative way to define variables, using the template key word and an initialization value.

(True/False)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(37)

A character literal is enclosed in ________ quotation marks, whereas a string literal is enclosed in ________ quotation marks.

(Multiple Choice)
4.9/5
(39)

The C++ language requires that you give variables names that indicate what the variables are used for.

(True/False)
4.9/5
(42)

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

(Multiple Choice)
4.9/5
(32)

You must have a ________ for every variable you intend to use in a program.

(Multiple Choice)
4.8/5
(34)

________ represent storage locations in the computer's memory.

(Multiple Choice)
5.0/5
(34)

What will the following code display? What will the following code display?

(Multiple Choice)
4.9/5
(45)

In C++ 11, if you want an integer literal to be treated as a long long int, you can append ________ at the end of the number.

(Multiple Choice)
4.8/5
(33)

The first step in using the string class is to #include the ________ header file.

(Multiple Choice)
4.8/5
(40)

What will the following code display? What will the following code display?

(Multiple Choice)
4.7/5
(34)

A statement that starts with a # symbol is called a:

(Multiple Choice)
4.8/5
(35)

What will the following code display? What will the following code display?

(Multiple Choice)
4.9/5
(45)

A variable called "average" should be declared as an integer data type because it will probably hold data that contains decimal places.

(True/False)
4.9/5
(41)

In a C++ program, two slash marks ( // )indicate:

(Multiple Choice)
4.9/5
(40)

What is the modulus operator?

(Multiple Choice)
4.9/5
(32)

Besides decimal, two other number systems you might encounter in C++ programs are:

(Multiple Choice)
4.7/5
(35)

What will the following code display? What will the following code display?

(Multiple Choice)
4.8/5
(42)
Showing 21 - 40 of 60
close modal

Filters

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