# The loop is particularly useful when processing

• Test Prep
• 8
• 96% (108) 104 out of 108 people found this document helpful

This preview shows page 4 - 7 out of 8 pages.

##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
The document you are viewing contains questions related to this textbook.
Chapter 5 / Exercise 2
Discrete Mathematics With Applications
Epp
Expert Verified
19.The ____ loop is particularly useful when processing arrays.a.forc.infiniteb.whiled.nestedANS: A
PTS:1REF:19320.A(n) ____ is very similar to a counter that you use to count loop iterations, except that you usually adda value other than one to this type of variable.
PTS:1REF:19521.____ is a technique with which you try to prepare for all possible errors before they occur.
PTS:1REF:19822.Business reports that list only totals, with no individual item details, are called ____.
PTS:1REF:19823.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:19824.Programmers employ the acronym ____ to mean that if your input is incorrect, your output is worthless.
PTS:1REF:20025.____ a data item means you override incorrect data by setting the variable to a specific value.
PTS:1REF:201COMPLETION1.Adding to a variable is called ____________________ the variable.
PTS:1REF:173
##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
The document you are viewing contains questions related to this textbook.
Chapter 5 / Exercise 2
Discrete Mathematics With Applications
Epp
Expert Verified
2.When one loop appears inside another, the loop that is contained is called the ____________________loop.
PTS:1REF:1773.In a forstatement, a loop control variable is initialized, evaluated, and ____________________.
PTS:1REF:1924.____________________ are frequently used to accumulate totals and to validate data.
PTS:1REF:1945.Making sure data falls within an acceptable range is referred to as ____________________ the data.
PTS:1REF:198MATCHINGMatch each term with a statement below.a.indefinitef.decrementb.loop control variableg.accumulatorc.nested loopsh.loopd.counteri.sentinel valuee.incrementj.stub1.One set of instructions that operates on multiple, separate sets of data2.Initialized before entering a whileloop3.To add to a variable4.To decrease a variable’s value5.Any numeric variable you use to count the number of times an event has occurred6.A loop that may execute a different number of times each time the program executes7.A value such as Y or N that stops a loop8.Loops within loops9.An empty module that acts as a placeholder10.A variable that you use to gather values
PTS:1REF:170
PTS:1REF:171
PTS:1REF:173
PTS:1REF:173
PTS:1REF:173
PTS:1REF:174
PTS:1REF:174-175
PTS:1REF:177
PTS:1REF:181