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

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

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

(Multiple Choice)
5.0/5
(88)

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

(Multiple Choice)
4.8/5
(77)

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

(Multiple Choice)
4.8/5
(70)

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

(True/False)
4.7/5
(78)

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

(Multiple Choice)
4.9/5
(66)

Which character signifies the beginning of an escape sequence?

(Multiple Choice)
4.8/5
(83)

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

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

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

(True/False)
5.0/5
(81)

Escape sequences are always stored internally as a single character.

(True/False)
4.9/5
(83)

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

(Multiple Choice)
4.9/5
(87)

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

(Multiple Choice)
4.9/5
(89)

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

(Multiple Choice)
4.7/5
(87)

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

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

(Multiple Choice)
5.0/5
(86)

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

(Multiple Choice)
4.8/5
(77)

Which data type typically requires only one byte of storage?

(Multiple Choice)
4.8/5
(71)

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

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

Filters

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