94%(170)160 out of 170 people found this document helpful
This preview shows page 1 - 5 out of 41 pages.
Programming Logic and Design, 8eSolutions 2-1Programming Logic and Design, 8th EditionChapter 2Review Questions1.What does a declaration provide for a variable?a.a nameb.a data typec.both of the aboved.none of the above2.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 _____.
Programming Logic and Design, 8eSolutions 2-2a.is a binary operatorb.has left-to-right associativityc.is most often represented by a colond.two of the above6.Which of the following is true about arithmetic precedence?7.Which of the following is a term used as a synonym for modulein 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.abstractionb.extractionc.extinction
Programming Logic and Design, 8eSolutions 2-3d.modularization10.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.globalb.invisiblec.in scoped.undefined14.Which of the following is nota typical housekeeping task?