Ch02_Logic9e_Solutions - Programming Logic and Design 9e Solutions 2-1 Programming Logic and Design 9th Edition Chapter 2 Review Questions 1 What

Ch02_Logic9e_Solutions - Programming Logic and Design...

This preview shows page 1 - 5 out of 35 pages.

Programming Logic and Design, 9e Solutions 2-1 Programming Logic and Design, 9th Edition Chapter 2 Review Questions 1.What does a declaration provide for a variable? a.a nameb.a data typec.both of the aboved.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 ___________.
Programming Logic and Design, 9e Solutions 2-2 5.The assignment operator ___________. a.is a binary operatorb.has left-to-right associativityc.is most often represented by a colond.two of the above 6.Multiplication has a lower precedence than _____. 7.Which of the following is not a term used as a synonym for module ? 8.Modularization _____. 9.What is the name for the process of paying attention to important properties while ignoring nonessential details? a.abstraction
Programming Logic and Design, 9e Solutions 2-3 b. extraction c. extinction 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
Programming Logic and Design, 9e Solutions 2-4 b. invisible c. in scope d. undefined 14. Which of the following is not a typical housekeeping task? 15. Which module in a typical program will execute the most times?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture