Chapter 3

Unlock all answers in this set

question
NOT
You use the logical ____ operator to reverse the meaning of a Boolean expression.
question
exclamation point
In C++, Java, and C#, the ____ is the symbol used for the NOT operator.
question
||
C#, C++, C, and Java use the symbol ____ to represent the logical OR.
question
A(n) ________ or unreachable path is a logical path that can never be traveled.
question
&&
The conditional AND operator in Java, C++, and C# consists of ____.
question
operand
A(n) ____ is a value on either side of an operator.
question
AND
The YumYum store sells ice cream. Single-scoops cost \$2.00, double-scoops cost \$2.80, and triple-scoops cost \$3.50. No matter how many scoops a customer chooses, when a customer also decides that they want the ice cream served in a cone, there is an additonal 50 cent charge. In order to correctly charge for the ice cream served in a cone, you would use a(n) ____.
question
equal to, greater than, and less than
Any decision can be made using combinations of just three types of comparisons: _____.
question
parentheses
Many programming languages allow you to use ____ to correct your logic when using ANDs and ORs and force the OR expression to be evaluated first.
question
range
A ____ of values is every value between low and high limits.
question
range
When you use a(n) ____ check, you compare a variable to a series of values that mark the limiting ends of ranges.
question
1 or 0
True/false evaluation is "natural" from a computer's standpoint because computer circuitry consists of two-state on-off switches, often represented by ____.
question
prompt
A ____ is a displayed statement that advises a user what to do. For example, "Please enter your name."
question
Boolean expression
A ____ is one that represents only one of two states, true or false.
question
constants
In any Boolean expression, the two values compared can be either variables or ____.
question
if age > 21 then
Which of the following pseudocode selects all people over 21?
question
short-circuit