Loops are frequently used to that is to make sure it

This preview shows page 3 - 6 out of 7 pages.

20.Loops are frequently used to ____; that is, to make sure it is meaningful and useful.a.validate datac.simulate datab.restructure datad.corroborate dataANS: A
PTS:1REF:21121.____ a data item means you override incorrect data by setting the variable to a specific value.
PTS:1REF:214COMPLETION1.Adding to a variable is called ____________________ the variable.
PTS:1REF:1882.When one loop appears inside another, the loop that is contained is called the ____________________loop.
PTS:1REF:1923.In a forstatement, a loop control variable is initialized, evaluated and ____________________.
PTS:1REF:2064.Loops are frequently used to accumulate ____________________ and to validate data.
PTS:1REF:2085.Making sure data falls within an acceptable range is referred to as ____________________ the data.
PTS:1REF:211MATCHINGMatch each item with a statement below.a.indefinitef.decrementb.loop control variableg.accumulatorc.nested loopsh.loopd.counteri.sentinel valuee.increment1.One set of instructions that operates on multiple, separate sets of data2.To add to a variable3.To decrease a variable’s value4.Loop that may execute a different number of times each time the program executes5.Any numeric variable you use to count the number of times an event has occurred6.A value such as Y or N that stops a loop7.Initialized before entering a while loop8.Loops within loops9.Variable that you use to gather values1.ANS: HPTS:1REF:185
PTS:1REF:188
PTS:1REF:188
PTS:1REF:189
PTS:1REF:188
PTS:1REF:189
PTS:1REF:186
PTS:1REF:192
PTS:1REF:208SHORT ANSWER1.What is an advantage of using fewer instructions?
PTS:1REF:185TOP:Critical Thinking2.What are the three steps that should occur in every loop?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture