Quiz3 Flashcards
You can use the conditional ____ operator within a Boolean expression to determine whether two ex-pressions are both true.
AND
Using a(n) ____ with a switch structure can often be convenient.
enumeration
The conditional OR operator is written as (____).
||
A ____ is a collection of one or more statements contained within a pair of curly braces.
block
The Boolean logical inclusive OR operator is written as (____).
|
A ____ structure involves choosing between alternative courses of action based on some value within a program.
decision
In a ____, one step follows another unconditionally.
sequence structure
If you want to perform one action when a Boolean expression evaluates as true and an alternate action when it evaluates as false, you can use a(n) ____ statement.
if-else
The NOT operator is written as ____.
!
You can use the conditional ____ operator when you want some action to occur even if only one of two conditions is true.
OR
Not allowing code to reach the end of a case is known as the ____.
no fall through rule
The Boolean logical AND operator is written as (____).
&
The conditional operator ?: is a ____ operator.
ternary
The expressions in each part of an AND expression are evaluated only as much as necessary to deter-mine whether the entire expression is true or false. This feature is called ____ evaluation.
short-circuit
The keyword ____ optionally is used prior to any action that should occur if the test expression does not match any case.
default