Exam 2: Introduction to C++

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

Which data type typically requires only one byte of storage?

(Multiple Choice)
4.8/5
(70)

In the C++ instruction, cookies = number % children; Given the following declaration statement: Int number = 38, children = 4, cookies; What is the value of cookies after the execution of the statement?

(Multiple Choice)
4.9/5
(86)

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

What will the following code display? cout << "Monday"; Cout << "Tuesday"; Cout << "Wednesday";

(Multiple Choice)
4.9/5
(90)

How would you consolidate the following declaration statements into one statement? int x = 7; Int y = 16; Int z = 28;

(Multiple Choice)
4.8/5
(68)

What is the output of the following statement? cout << 4 * (15 / (1 + 3)) << endl;

(Multiple Choice)
4.9/5
(84)

A variable's ___________ is the part of the program that has access to the variable.

(Multiple Choice)
4.9/5
(79)

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

(Multiple Choice)
4.9/5
(71)

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

(Multiple Choice)
4.7/5
(74)

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

(Multiple Choice)
4.8/5
(73)

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.9/5
(81)

Every complete C++ program must have a _____________.

(Multiple Choice)
5.0/5
(88)

Floating point constants are normally stored in memory as doubles.

(True/False)
4.8/5
(71)

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

(Multiple Choice)
5.0/5
(91)

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

(Multiple Choice)
4.7/5
(92)

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

(Multiple Choice)
4.9/5
(75)
Showing 41 - 56 of 56
close modal

Filters

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