Ch04_Logic8e_Solutions - Programming Logic and Design 8e Solutions 4-1 Programming Logic and Design 8th Edition Chapter 4 Review Questions 1 A

Ch04_Logic8e_Solutions - Programming Logic and Design 8e...

This preview shows page 1 - 5 out of 96 pages.

Programming Logic and Design, 8e Solutions 4-1 Programming Logic and Design, 8th Edition Chapter 4 Review Questions 1.A _____ expression has one of two values: true or false. a.Georgianb.Booleanc.Barbariand.Selective 2.In a selection, the elseclause executes _____. 3.The greater-than operator evaluates as true when _____. 4.A trivial Boolean expression is one that _____.
Image of page 1
Programming Logic and Design, 8e Solutions 4-2 5. If x <= yis true, then _____. a. x = yis trueb. y <= xis true c. x > yis falsed. x >= y is false 6. If j <> kis true, then _____. 7. In an AND condition, the most efficient technique is to first ask the question that _____. 8. If mis true and nis false, then _____.
Image of page 2
Programming Logic and Design, 8e Solutions 4-3 9. If pis true and qis false, then _____. a. p OR qis trueb. p OR qis falsec. p AND qis trued. pis greater than q 10.Which of the lettered choices is equivalent to the following decision?if x > 10 thenif y > 10 thenoutput "X"endifendif 11.If conditionAis 30 percent likely to be true and conditionBis 10 percent likely to be true, then it is most efficient to test conditionAfirst _____. 12.Which of the following is a poorly written, trivial Boolean expression?
Image of page 3
Programming Logic and Design, 8eSolutions 4-4 13.Which of the following is a trivial Boolean expression? a.k < b AND k > bb.m = 10 OR m = 20c.n > 12 OR p > 12d.q > 10 AND q < 19 14.Which of the following is a trivial Boolean expression?
Image of page 4
Image of page 5

You've reached the end of your free preview.

Want to read all 96 pages?

  • Fall '15
  • NUM, sentinel value, dueMonth

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
A+ icon
Ask Expert Tutors