Programming II - Ch. 04 Quiz

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

!

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.

==

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 ________ statement causes other program statements to execute only under certain conditions.

if

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

nested if

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

relational expression

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 ________ 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

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


Kaugnay na mga set ng pag-aaral

CH 25 - Male Genitourinary System

View Set

Chapter 12: Wisdom: Then and Now

View Set

Microbial Ecology Final Exam Study Guide Questions

View Set

Materials of Decoration - Windows to Sculpture

View Set

Glucocorticoids - prednisone (Rayos) & Mineralocorticoids - fludrocortisone

View Set

Cellular Respiration: Krebs Cycle

View Set