Ch02_Logic8e_Solutions - Programming Logic and Design 8e...

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

Programming Logic and Design, 8e Solutions 2-1 Programming Logic and Design, 8th Edition Chapter 2 Review Questions 1. What does a declaration provide for a variable? a. a name b. a data type c. both of the above d. none of the above 2. A variable’s data type describes all of the following except _____. 3. The value stored in an uninitialized variable is _____. 4. The value 3 is a _____. 5. The assignment operator _____.
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 2-2 a. is a binary operator b. has left-to-right associativity c. is most often represented by a colon d. two of the above 6. Which of the following is true about arithmetic precedence? 7. Which of the following is a term used as a synonym for module in some programming languages? 8. Which of the following is a reason to use modularization? 9. What is the name for the process of paying attention to important properties while ignoring nonessential details? a. abstraction b. extraction c. extinction
Image of page 2
Programming Logic and Design, 8e Solutions 2-3 d. modularization 10. Every module has all of the following except _____. 11. Programmers say that one module can _____ another, meaning that the first module causes the second module to execute. 12. The more that a module’s statements contribute to the same job, the greater the _____ of the module. 13. In most modern programming languages, a variable or constant that is declared in a module is _____ in that module. a. global b. invisible c. in scope d. undefined 14. Which of the following is not a typical housekeeping task?
Image of page 3

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

Programming Logic and Design, 8e Solutions 2-4
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '15
  • NUM, hierarchy chart

{[ 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