96%(282)272 out of 282 people found this document helpful
This preview shows page 1 - 5 out of 96 pages.
Programming Logic and Design, 8eSolutions 4-1Programming Logic and Design, 8th EditionChapter 4Review Questions1.A _____ expression has one of two values: true or false.a.Georgianb.Booleanc.Barbariand.Selective2.In a selection, the elseclause executes _____.3.The greater-than operator evaluates as true when _____.4.A trivial Boolean expression is one that _____.
Programming Logic and Design, 8eSolutions 4-25. If x <= yis true, then _____.a. x = yis trueb. y <= xis true c. x > yis falsed. x >= y is false6. 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 _____.
Programming Logic and Design, 8eSolutions 4-39. If pis true and qis false, then _____.a. p OR qis trueb. p OR qis falsec. p AND qis trued. pis greater than q10.Which of the lettered choices is equivalent to the following decision?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?
Programming Logic and Design, 8eSolutions 4-413.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 < 1914.Which of the following is a trivial Boolean expression?