Chapter 4: Making DecisionsTRUE/FALSE
1.Every decision you make in a computer program involves evaluating a Boolean expression.
2.In any Boolean expression, the two values compared can be either variables or constants.
3.Any decision can be made using combinations of just two types of comparisons: equal and not equal.
4.Most programming languages allow you to ask two or more questions in a single comparison.
5.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.
6.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.
7.Besides ANDand ORoperators, most languages support a NOToperator.
8.Most programming languages limit the number of ANDand ORoperators in an expression.
9.When you combine ANDand ORoperators, the ORoperators take precedence, meaning their Boolean values are evaluated first.
10.You can use parentheses to override the default order of operations.
A selection with an action that is associated with each of two possible outcomes is known as a(n) ____