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...

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.
Image of page 1
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 _____.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 53 pages?

  • Fall '15
  • NUM

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes