9781111969752_TB_ch05 - Chapter 5 Looping TRUE\/FALSE 1 The loop control variable is initialized after entering the loop ANS F PTS 1 REF 171 2 In some

9781111969752_TB_ch05 - Chapter 5 Looping TRUE/FALSE 1 The...

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

Chapter 5: LoopingTRUE/FALSE1.The loop control variable is initialized after entering the loop.PTS:1REF:1712.In some cases, a loop control variable does not have to be initialized.PTS:1REF:1713.An indefinite loop is a loop that never stops.PTS:1REF:1734.You can either increment or decrement the loop control variable.PTS:1REF:1735.When one loop appears inside another is is called an indented loop.PTS:1REF:1776.Forgetting to initialize and alter the loop control variable is a common mistake that programmers sometimes make.PTS:1REF:1837.Every high-level computer programming language contains a whilestatement.PTS:1REF:1928.Both the whileloop and the forloop are examples of pretest loops.PTS:1REF:1939.The safest action is to assign the value 1 to accumulators before using them.PTS:1REF:19710.It is the programmer’s responsibility to initialize all variables that must start with a specific value.PTS:1REF:198MULTIPLE CHOICE1.The first step in a whileloop is typically to ____.
PTS:1REF:1712.Once your logic enters the body of a structured loop, ____.PTS:1REF:171-1723.The last step in a whileloop is usually to ____.a.compare the loop control variable to a constant valueb.initialize the loop control variable c.increment the loop control variabled.execute the body of the loopANS: CPTS:1REF:1724.A(n) ____ loop executes a predetermined number of times.PTS:1REF:1725.Many loop control variable values are altered by ____, or adding to them.PTS:1REF:1736.A(n) ____ is any numeric variable you use to count the number of times an event has occurred.PTS:1REF:173

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture