Exam 2: Basic Elements of C++

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

When a value of one data type is automatically changed to another data type, a(n) ____________________ type coercion is said to have occurred.

(Short Answer)
4.8/5
(34)

In C++, reserved words are the same as predefined identifiers.

(True/False)
4.8/5
(39)

Which of the following is the newline character?

(Multiple Choice)
4.9/5
(29)

____ are executable statements that inform the user what to do.

(Multiple Choice)
4.8/5
(39)

____________________ rules determine the meaning of instructions.

(Short Answer)
4.9/5
(34)

The maximum number of significant digits in float values is up to 6 or 7.

(True/False)
4.9/5
(35)

A(n) ____________________ is a memory location whose contents can be changed.

(Short Answer)
4.8/5
(41)

The ____________________ type is C++ 's method for allowing programmers to create their own simple data types.

(Short Answer)
4.7/5
(42)

____ is a valid int value.

(Multiple Choice)
4.8/5
(36)

The maximum number of significant digits in values of the double type is 15.

(True/False)
4.7/5
(32)

____ is a valid char value.

(Multiple Choice)
4.9/5
(39)

A(n) ____________________ is a sequence of zero or more characters.

(Short Answer)
4.7/5
(33)

An example of a floating point data type is ____.

(Multiple Choice)
4.8/5
(36)

A mixed arithmetic expression contains all operands of the same type.

(True/False)
4.8/5
(41)

The ____ rules of a programming language tell you which statements are legal, or accepted, by the programming language.

(Multiple Choice)
4.9/5
(38)

Choose the output of the following C++ statement: cout << "Sunny " << '\n' << "Day " << endl;

(Multiple Choice)
4.9/5
(33)

An operator that has only one operand is called a unique operator.

(True/False)
4.7/5
(47)

____________________ can be used to identify the authors of the program, give the date when the program is written or modified, give a brief explanation of the program, and explain the meaning of key statements in a program.

(Short Answer)
4.7/5
(31)

Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____.

(Multiple Choice)
4.9/5
(27)

The escape sequence \r moves the insertion point to the beginning of the next line.

(True/False)
4.8/5
(40)
Showing 21 - 40 of 50
close modal

Filters

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