Exam 2: Introduction to C Plus Plus

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

C++ does not have a built in data type for storing strings of characters.

Free
(True/False)
4.9/5
(43)
Correct Answer:
Verified

True

Every complete C++ program must have a ________.

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

B

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

Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
Verified

C

This is used to mark the end of a complete C++ programming statement.

(Multiple Choice)
4.9/5
(36)

What will the value of x be after the following statements execute? Int x; X = 18 / 4;

(Multiple Choice)
4.7/5
(37)

What will the value of x be after the following statements execute? Int x; X = 18.0 / 4;

(Multiple Choice)
4.7/5
(44)

Floating point constants are normally stored in memory as doubles.

(True/False)
4.9/5
(31)

When typing in your source code into the computer, you must be very careful since most of your C++ instructions, header files, and variable names are case sensitive.

(True/False)
4.9/5
(29)

Look at the following program and answer the question that follows it. Look at the following program and answer the question that follows it.   Which line(s) in this program cause output to be displayed on the screen? Which line(s) in this program cause output to be displayed on the screen?

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.8/5
(36)

Which of the following correctly consolidates the following declaration statements into one statement? Int x = 7; Int y = 16; Int z = 28;

(Multiple Choice)
4.9/5
(30)

Character constants in C++ are always enclosed in ________.

(Multiple Choice)
4.9/5
(44)

If you use a C++ key word as an identifier, your program will:

(Multiple Choice)
4.8/5
(36)

What will the value of x be after the following statements execute? Int x; X = 18 % 4;

(Multiple Choice)
4.8/5
(41)

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

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(32)

Assume that a program has the following variable definition: char letter; Which of the following statements correctly assigns the character Z to the variable?

(Multiple Choice)
4.8/5
(31)

In C++ 11, the ________ tells the compiler to determine the variable's data type from the initialization value.

(Multiple Choice)
4.8/5
(38)

For every opening brace in a C++ program, there must be a:

(Multiple Choice)
4.8/5
(37)

In memory, C++ automatically places a ________ at the end of string literals.

(Multiple Choice)
4.9/5
(30)
Showing 1 - 20 of 60
close modal

Filters

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