C++ Chapter 4

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

A flag is a variable, usually of data type ________, that signals whether or not some condition exists.

bool

If a switch statement has no ________ statements, the program "falls through" all of the statements below the one with the matching case expression.

break

Relational operators allow you to ________ numbers.

compare

The C++ ________ operator represents logical AND.

&&

In C++ when a relational expression is false, it has the value

0.

The ________ operator is used in C++ to test for equality.

==

The ________ statement causes other program statements to execute only under certain conditions.

if

The ________ statement executes one block of statements if a test condition is true, and another block if the condition is false.

if/else

When a program lets the user know that an invalid menu choice has been made, this is an example of

input validation.

When an if statement is placed within the conditionally-executed code of another if statement, this is known as a(n)

nested if

A trailing else placed at the end of an if/else if statement provides a default action when ________ of the if conditions is/are true.

none

The expression x < y is called a(n) ________ expression.

relational

The default section of a switch statement performs a similar task as the ________ portion of an if/else if statement.

trailing else

What will the following expression evaluate to? !( 6 > 7 || 3 == 4)

true

The ________ operator takes an operand and reverses its truth or falsehood.

!


Ensembles d'études connexes

JOINTS: Classification, How Joints Move, Synovial Joints, Name of Joints

View Set

Bone Tissue and the Skeletal System

View Set

464 prepu ch 3 - Growth and Development of the Newborn and Infant

View Set

Chapter Two - Small Business Entrepreneurs: Characteristics and Competencies

View Set