Ch05_Logic8e_Solutions - Programming Logic and Design 8e Solutions 5-1 Programming Logic and Design 8th Edition Chapter 5 Review Questions REVIEW

# Ch05_Logic8e_Solutions - Programming Logic and Design 8e...

• Homework Help
• 53
• 95% (221) 210 out of 221 people found this document helpful

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

Programming Logic and Design, 8e Solutions 5-1 Programming Logic and Design, 8th Edition Chapter 5 Review Questions REVIEW QUESTIONS 1.The structure that allows you to write one set of instructions that operates on multiple, separate sets of data is the _____. a.sequenceb.loopc.selectiond.case 2.The loop that frequently appears in a program’s mainline logic _____. 3.Which of the following is nota step that must occur with every correctly working loop? 4.The statements executed within a loop are known collectively as the _____. 5.A counter keeps track of _____. a.the number of times an event has occurredb.the number of machine cycles required by a segment of a programc.the number of loop structures within a programd.the number of times software has been revised 6.Adding 1 to a variable is also called _____ it.
Programming Logic and Design, 8e Solutions 5-2 7.Which of the following is a definite loop? 8.Which of the following is an indefinite loop? 9.When you decrement a variable, you _____. a.set it to 0b.reduce it by one-tenthc.subtract a value from itd.remove it from a program 10.When two loops are nested, the loop that is contained by the other is the _____ loop. 11.When loops are nested, _____. 12.Most programmers use a forloop _____.