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

____ is a valid int value.

(Multiple Choice)
5.0/5
(39)

An example of a floating point data type is ____.

(Multiple Choice)
4.9/5
(37)

The maximum number of significant digits is called the ____________________.

(Short Answer)
4.8/5
(46)

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

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

(Multiple Choice)
4.8/5
(32)

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

(True/False)
4.9/5
(35)

A comma is also called a statement terminator.

(True/False)
4.8/5
(43)

The value of the expression 17 % 7 is ____.

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.8/5
(26)

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

(Short Answer)
4.8/5
(43)

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

(Short Answer)
4.9/5
(41)

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

(True/False)
4.8/5
(39)

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

(Multiple Choice)
4.9/5
(41)

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

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

(True/False)
4.9/5
(44)

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

(Multiple Choice)
4.8/5
(34)

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

(True/False)
4.8/5
(38)

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.8/5
(48)

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

(Multiple Choice)
4.8/5
(35)
Showing 21 - 40 of 50
close modal

Filters

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