Chapter 3

25 July 2022
4.7 (114 reviews)
20 test answers

Unlock all answers in this set

Unlock answers (16)
question
NOT
answer
You use the logical ____ operator to reverse the meaning of a Boolean expression.
question
exclamation point
answer
In C++, Java, and C#, the ____ is the symbol used for the NOT operator.
question
||
answer
C#, C++, C, and Java use the symbol ____ to represent the logical OR.
question
dead
answer
A(n) ________ or unreachable path is a logical path that can never be traveled.
question
&&
answer
The conditional AND operator in Java, C++, and C# consists of ____.
question
operand
answer
A(n) ____ is a value on either side of an operator.
question
AND
answer
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
answer
Any decision can be made using combinations of just three types of comparisons: _____.
question
parentheses
answer
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
answer
A ____ of values is every value between low and high limits.
question
range
answer
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
answer
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
answer
A ____ is a displayed statement that advises a user what to do. For example, "Please enter your name."
question
Boolean expression
answer
A ____ is one that represents only one of two states, true or false.
question
constants
answer
In any Boolean expression, the two values compared can be either variables or ____.
question
if age > 21 then
answer
Which of the following pseudocode selects all people over 21?
question
short-circuit
answer
Each part of an expression that uses an AND operator is evaluated only as far as necessary to determine whether the entire expression is true or false, this feature is called ____ evaluation.
question
six
answer
There are ____ relational comparison operators supported by all modern programming languages.
question
true
answer
In an AND decision, it is more efficient to first ask the question that is less likely to be ____.
question
case
answer
When several decisions are based on the value of the same variable, many programming languages offer a shortcut called the ____ structure.