Chapter Questions
What is a module?
What is meant by the phrase "divide and conquer"?
How do modules help you reuse code in a program?
How can modules make the development of multiple programs faster?
How can modules make it easier for programs to be developed by teams of programmers?
In most languages, a module definition has what two parts?
What does the phrase "calling a module" mean?
When a module is executing, what happens when the end of the module is reached?
Describe the steps involved in the top-down design process.
What is a local variable? How is access to a local variable restricted?
What is a variable's scope?
Is it usually permissible to have more than one variable with the same name in the same scope? Why or why not?
Is it usually permissible for a local variable in one module to have the same name as a local variable in a different module?
What are the pieces of data that are passed into a module called?
What are the variables that receive pieces of data in a module called?
Does it usually matter whether an argument's data type is different from the data type of the parameter that it is being passed to?
Typically, what is a parameter variable's scope?
Explain the difference between passing by value and passing by reference.
What is the scope of a global variable?
Give one good reason that you should not use global variables in a program.
What is a global constant? Is it permissible to use global constants in a program?