COP1000C Quiz#4 T/F

7 September 2022
4.7 (114 reviews)
10 test answers

Unlock all answers in this set

Unlock answers (6)
question
True
answer
Every decision you make in a computer program involves evaluating a Boolean expression.
question
True
answer
In any Boolean expression, the two values compared can be either variables or constants.
question
False
answer
Any decision can be made using combinations of just two types of comparisons: equal and not equal.
question
True
answer
Most programming languages allow you to ask two or more questions in a single comparison.
question
True
answer
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.
question
False
answer
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.
question
True
answer
The NOT operator is a unary operator, meaning it takes only one operand.
question
False
answer
Most programming languages limit the number of AND and OR operators in an expression.
question
False
answer
When you combine AND and OR operators, the OR operators take precedence, meaning their Boolean values are evaluated first.
question
True
answer
You can use parentheses to override the default order of operations.