Beruflich Dokumente
Kultur Dokumente
COE112/A3
Assignment 2
1.
What does a declaration provide for a variable? both of the above
2.
A variables data type describes all of the following except. the scope of the
variable
3.
4.
5.
6.
Which of the following is true about arithmetic precedence? Division has
higher precedence than subtraction.
7.
Which of the following is a term used for module in any programming
language? both of these
8.
Which of the following is a reason to use modularization? Modularization
allows you to more easily reuse your work.
9.
What is the name for the process of paying attention to important properties
while ignoring nonessential details? abstraction
10.
11.
Programmers say that one module can_____ another, meaning that the first
module causes the second module to execute call
12.
The more that a modules statements contribute to the same job, the greater
the ____ of the module. functional cohesion
13.
In the most modern programming languages, when a variable or constant is
declared in a module, the variable constant is _____ in that module. in scope
14.
Which of the following is not typical housekeeping task? printing
summaries
15.
Which module in a typical program will execute the most times? the detail
loop
16.
A hierarchy chart tells you. which routines call which other routines
17.
What are no executing statements that programmers place within their code
to explain program statement in English? comments
18.
19.
Which of the following is valid advice for naming variables? To make names
easier to read, separate long words by using underscores or capitalization
for each new words.
20.
#2
Draw a typical hierarchy chart for a pay check producing program.