Exam 2: Basic Elements of C++

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

____________________ functions are those that have already been written and are provided as part of the system.

(Short Answer)
4.7/5
(93)

____ is a valid int value.

(Multiple Choice)
5.0/5
(75)

An example of a floating point data type is ____.

(Multiple Choice)
4.9/5
(78)

The maximum number of significant digits is called the ____________________.

(Short Answer)
4.8/5
(90)

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

(Multiple Choice)
4.8/5
(68)

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

(Multiple Choice)
4.8/5
(76)

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

(True/False)
4.9/5
(79)

A comma is also called a statement terminator.

(True/False)
4.8/5
(94)

The value of the expression 17 % 7 is ____.

(Multiple Choice)
4.8/5
(80)

Which of the following is a reserved word in C++?

(Multiple Choice)
4.8/5
(76)

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

(Short Answer)
4.9/5
(89)

The smallest individual unit of a program written in any language is called a(n) ____________________.

(Short Answer)
4.9/5
(78)

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

(True/False)
4.8/5
(74)

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

(Multiple Choice)
4.8/5
(87)

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

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

(True/False)
4.8/5
(81)

The expression static_cast<int>(9.9) evaluates to ____.

(Multiple Choice)
4.8/5
(87)

Suppose a = 5.After the execution of the statement ++a; the value of a is 6.

(True/False)
4.8/5
(77)

In a C++ program, one and two are double variables and input values are 10.5 and 30.6.After the statement cin >> one >> two; executes, ____.

(Multiple Choice)
4.9/5
(94)

Suppose that alpha and beta are int variables and alpha = 5 and beta = 10.After the statement alpha *= beta; executes, ____.

(Multiple Choice)
4.7/5
(69)
Showing 21 - 40 of 50
close modal

Filters

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