Exam 4: Selection Structures

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

Before the current ANSI/ISO C++ standard, C++ didn t have a built-in Boolean data type with its two Boolean values, true and false .

(True/False)
4.9/5
(36)

The if-else statement is written: if (expression) statement1; else statement2; . If the value of expression is non-zero, ____________________ will be executed.

(Short Answer)
4.7/5
(32)

With ____, the program includes code to check for improper data before an attempt is made to process it further.

(Multiple Choice)
4.8/5
(42)

In a relational expression, the value of the expression can be only the integer value 1 or ____.

(Multiple Choice)
4.9/5
(47)

The case keyword identifies the start of the switch statement.

(True/False)
4.8/5
(37)

Using the abs() function requires including the ____ header file.

(Multiple Choice)
4.8/5
(37)

Any variable declared within a block of statements has meaning only between its ____________________ and the closing braces defining the block.

(Short Answer)
4.8/5
(39)

Because the NOT operator is used with only one expression, it is a(n) ____________________ operator.

(Short Answer)
4.8/5
(40)

In C++, two string expressions can be compared by using relational operators or the ____ class s comparison methods.

(Multiple Choice)
4.7/5
(40)

One or more if-else statements can be included in either part of an if-else statement.

(True/False)
4.9/5
(33)

The ____ statement identifies the end of a particular case and causes an immediate exit from the switch statement.

(Multiple Choice)
4.8/5
(38)
Showing 41 - 51 of 51
close modal

Filters

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