9781111969752_TB_ch04 - Chapter 13 System Modeling with the UML TRUE\/FALSE 1 Good models promote communicat

9781111969752_TB_ch04 - Chapter 13 System Modeling with the...

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

Chapter 4: Making Decisions TRUE/FALSE 1. Every decision you make in a computer program involves evaluating a Boolean expression. ANS: T PTS: 1 REF: 122 2. In any Boolean expression, the two values compared can be either variables or constants. ANS: T PTS: 1 REF: 126 3. Any decision can be made using combinations of just two types of comparisons: equal and not equal. ANS: F PTS: 1 REF: 127 4. Most programming languages allow you to ask two or more questions in a single comparison. ANS: T PTS: 1 REF: 134 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. ANS: T PTS: 1 REF: 135 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. ANS: F PTS: 1 REF: 136 7. Besides AND and OR operators, most languages support a NOT operator. ANS: T PTS: 1 REF: 147 8. Most programming languages limit the number of AND and OR operators in an expression. ANS: F PTS: 1 REF: 154 9. When you combine AND and OR operators, the OR operators take precedence, meaning their Boolean values are evaluated first. ANS: F PTS: 1 REF: 154 10.You can use parentheses to override the default order of operations. ANS: TPTS:1REF:156a.unaryc.octal MULTIPLE CHOICE 1. A selection with an action that is associated with each of two possible outcomes is known as a(n) ____ selection.
Image of page 1
b.binaryd.semiconductorANS: BPTS:1REF:122 2.The keyword that is NOTincluded in a single-alternative selection is ____. 3.Boolean expressions are named after ____. 4.____ operators require two operands. 5.The ____ sign means “greater than.” a.<c.<=b.=d.>ANS: DPTS:1REF:126 6.Usually, ____ variables are not considered to be equal unless they are identical. 7.When you ask multiple questions before an outcome is determined, you create a ____ condition. 8.A(n) ____ decision is a decision in which two conditions must be true for an action to take place.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 8 pages?

  • Fall '15
  • Logic, pts, REF, George Boole

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes