# 9781111969752_TB_ch04 - Chapter 13: System Modeling with...

• Test Prep
• 8
• 96% (90) 86 out of 90 people found this document helpful

This preview shows page 1 - 3 out of 8 pages.

Chapter 4: Making DecisionsTRUE/FALSE1.Every decision you make in a computer program involves evaluating a Boolean expression.PTS:1REF:122
2.In any Boolean expression, the two values compared can be either variables or constants.PTS:1REF:126
3.Any decision can be made using combinations of just two types of comparisons: equal and not equal.PTS:1REF:127
4.Most programming languages allow you to ask two or more questions in a single comparison.PTS:1REF:134
5.A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary todetermine whether the entire expression is true or false.PTS:1REF:135
6.When you need to satisfy two or more criteria to initiate an event in a program, you must make surethat the second decision is made entirely independently of the first decision.PTS:1REF:136
7.BesidesANDandORoperators, most languages support aNOToperator.PTS:1REF:147
8.Most programming languages limit the number ofANDandORoperators in an expression.PTS:1REF:154
9.When you combineANDandORoperators, theORoperators take precedence, meaning their Booleanvalues are evaluated first.PTS:1REF:154
10.You can use parentheses to override the default order of operations.PTS:1REF:156
MULTIPLE CHOICE1.A selection with an action that is associated with each of two possible outcomes is known as a(n) ____selection.
##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Chapter 1 / Exercise 31
Elementary and Intermediate Algebra
Tussy/Gustafson
Expert Verified
b.binaryd.semiconductorANS: BPTS:1REF:1222.The keyword that isNOTincluded in a single-alternative selection is ____.PTS:1REF:122
3.Boolean expressions are named after ____.a.Harold Booleanc.George Booleb.Henry Booled.Gerhardt BooleanANS: CPTS:1REF:122
4.____ operators require two operands.PTS:1REF:126
5.The ____ sign means “greater than.”PTS:1REF:126
6.Usually, ____ variables are not considered to be equal unless they are identical.PTS:1REF:127
7.When you ask multiple questions before an outcome is determined, you create a ____ condition.a.dual-alternativec.single-alternativeb.nestedd.compoundANS: DPTS:1REF:129
8.A(n) ____ decision is a decision in which two conditions must be true for an action to take place.PTS:1REF:129

Course Hero member to access this document

Course Hero member to access this document

End of preview. Want to read all 8 pages?

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
pts, REF, George Boole
##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
The document you are viewing contains questions related to this textbook.
Chapter 1 / Exercise 31
Elementary and Intermediate Algebra
Tussy/Gustafson
Expert Verified