Programming Logic and Design
Chapter 4 Quiz Correct Answers
A path that can never be traveled. - ANSWER-Dead
Used to override the default order of operations. - ANSWER-Parentheses.
In any Boolean expression, the two values compared can be either variables or
constants - ANSWER-True
When you combine AND and OR operators, the OR operators take precedence. -
ANSWER-False
Most programming languages allow you to ask two or more questions in a single
comparison. - ANSWER-True
A short-circuit evaluation is where each part of an expression is evaluated only as far
as necessary to determine whether the entire expression is true or false. - ANSWER-
True
You can use parentheses to override the default order of operations. - ANSWER-
True
Every decision you make in a computer program involves evaluating a Boolean
expression. - ANSWER-True
The NOT operator is a unary operator. - ANSWER-True
When you need to satisfy two or more criteria to initiate an event in a program, you
must make sure that the second decision is made entirely independently of the first
decision. - ANSWER-False
Any decision can be made using combinations of just two types of comparisons:
equal and not equal. - ANSWER-False
Most programming languages limit the number of AND and OR operators in an
expression. - ANSWER-False
In and And decision, first ask the question that is less likely to be ___ - ANSWER-
False
When you ____decisions because the resulting action requires that two conditions
be true, you must decide which of the two decisions to make first. - ANSWER-Nest
Chapter 4 Quiz Correct Answers
A path that can never be traveled. - ANSWER-Dead
Used to override the default order of operations. - ANSWER-Parentheses.
In any Boolean expression, the two values compared can be either variables or
constants - ANSWER-True
When you combine AND and OR operators, the OR operators take precedence. -
ANSWER-False
Most programming languages allow you to ask two or more questions in a single
comparison. - ANSWER-True
A short-circuit evaluation is where each part of an expression is evaluated only as far
as necessary to determine whether the entire expression is true or false. - ANSWER-
True
You can use parentheses to override the default order of operations. - ANSWER-
True
Every decision you make in a computer program involves evaluating a Boolean
expression. - ANSWER-True
The NOT operator is a unary operator. - ANSWER-True
When you need to satisfy two or more criteria to initiate an event in a program, you
must make sure that the second decision is made entirely independently of the first
decision. - ANSWER-False
Any decision can be made using combinations of just two types of comparisons:
equal and not equal. - ANSWER-False
Most programming languages limit the number of AND and OR operators in an
expression. - ANSWER-False
In and And decision, first ask the question that is less likely to be ___ - ANSWER-
False
When you ____decisions because the resulting action requires that two conditions
be true, you must decide which of the two decisions to make first. - ANSWER-Nest