Filters
Question type

Study Flashcards

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

Correct Answer

verifed

verified

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 .

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) cnumber
B) iostream
C) math
D) cmath

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

The case keyword identifies the start of the switch statement.

A) True
B) False

Correct Answer

verifed

verified

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


A) string
B) boolean
C) object
D) compareTo

E) A) and D)
F) A) and B)

Correct Answer

verifed

verified

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


A) default
B) break
C) stop
D) exit

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

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


A) -10
B) -1
C) 0
D) 10

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

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


A) defensive programming
B) bug tracking
C) debugging
D) self-cleaning

E) B) and C)
F) C) and D)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 41 - 51 of 51

Related Exams

Show Answer