Ch05_Logic8e_Solutions - Programming Logic and Design 8e...

Info icon This preview shows pages 1–3. Sign up to view the full content.

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. sequence b. loop c. selection d. case 2. The loop that frequently appears in a program’s mainline logic _____. 3. Which of the following is not a 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 occurred b. the number of machine cycles required by a segment of a program c. the number of loop structures within a program d. the number of times software has been revised 6. Adding 1 to a variable is also called _____ it.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

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 0 b. reduce it by one-tenth c. subtract a value from it d. 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 for loop _____.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '15
  • NUM

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern