Ch. 4

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which of the following operators has the highest order of precedence?

!

Which of the following expressions evaluates to true?

"Air" < "An"

You can disable assert statements by using the preprocessor directive ____.

#define NDEBUG

Which of the following expressions evaluates to true?

(14 >= 5) && ('A' < 'B')

Given the input stream variable cin, the expression ____ evaluates to true if the last input succeeded.

(cin)

When using a return statement, the return of any value other than ____ indicates that something went wrong during program execution.

0

Which of the following is the "less than or equal to" operator in C++?

<=

_____ operators enable you to combine logical expressions.

Logical

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

Select

A ____ statement causes an immediate exit from the switch structure.

break

The specification of the assert function is found in the header file ____.

cassert

To permit more than one statement to execute if an expression evaluates to true, C++ provides a structure called a ____ statement.

compound

In C++, the ____ operator, written as ?: is a ternary operator.

conditional

In C++, the symbol ==, which consists of two equal signs, is called the ____ operator.

equality

If the possible range of values for a multiple selection statement cannot be reduced to a finite set of values, you must use the ____ structure.

if ... else

You can use either a(n) ___ variable or a bool variable to store the value of a logical expression.

int

The value of the expression in a switch statement must be a(n) ____.

integral

In ____ evaluation, the computer evaluates a logical expression from left to right and stops as soon as the value of the expression is known.

short-circuit

When C++ evaluates a logical expression, any nonzero value is treated as _____.

true

The operator ! is ____, so it only has one operand.

unary


Conjuntos de estudio relacionados

ACAMS Chapter 2: International AML/CFT Standards

View Set

Statistics Chapter 4 Study Guide

View Set

Abnormal Psychology Exam #3: Chapters 10-15

View Set

Econ 2 Rojas Midterm Study Guide

View Set

4.4 Federalists, Anti-federalists, and the Bill of Rights

View Set

AP Gov-Chapter 4--> The Executive Branch (Presidency)

View Set

computer forensics - midterm - quizes 1 - 8

View Set