Exam 2: Introduction to C Plus Plus

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

________ must be included in any program that uses the cout object.

(Multiple Choice)
4.8/5
(24)

This function in C++ allows you to identify how many bytes of storage on your computer system an integer data value requires.

(Multiple Choice)
4.9/5
(36)

These are data items whose values do not change while the program is running.

(Multiple Choice)
5.0/5
(42)

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

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(38)

If you do not follow a consistent programming style, your programs will generate compiler errors.

(True/False)
4.7/5
(40)

The float data type is considered ________ precision, and the double data type is considered ________ precision.

(Multiple Choice)
4.9/5
(32)

Which character signifies the beginning of an escape sequence?

(Multiple Choice)
4.8/5
(35)

What is the value of cookies after the execution of the following statements? Int number = 38, children = 4, cookies; Cookies = number % children;

(Multiple Choice)
4.7/5
(31)

When writing long integer literals or long long integer literals in C++ 11, you can use either an uppercase or lowercase L.

(True/False)
4.9/5
(35)

A preprocessor directive does not require a semicolon at the end.

(True/False)
5.0/5
(37)

Escape sequences are always stored internally as a single character.

(True/False)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(33)

These are used to declare variables that can hold real numbers.

(Multiple Choice)
4.9/5
(34)

This control sequence is used to skip over to the next horizontal tab stop.

(Multiple Choice)
4.7/5
(47)

Assume that a program has the following string object definition: string name; Which of the following statements correctly assigns a string literal to the string object?

(Multiple Choice)
4.8/5
(50)

Assuming you are using a system with 1-byte characters, how many bytes of memory will the following string literal occupy? "William"

(Multiple Choice)
4.9/5
(44)

The numeric data types in C++ can be broken into two general categories:

(Multiple Choice)
4.8/5
(35)

Which data type typically requires only one byte of storage?

(Multiple Choice)
4.8/5
(33)

Which of the following defines a double-precision floating point variable named payCheck?

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

Filters

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