Quiz5-Modules Flashcards
Modules make it impossible for programmers to work in teams: (T/F)
False
The “Top-Down” design process is sometimes referred to as “Stepwise Refinement.” (T/F)
True
A module can have two or more variables with the SAME name because they are within the same scope. (T/F)
False
The scope of a variable is the segment of the program in which the variable can be accessed. (T/F)
True
The arguments in a module call and the parameters listed in the module header must be of a compatible data type. (T/F)
True
The scope of the parameter variables is the entire program and they are visible to any statement in the program. (T/F)
False
When a variable is passed by value, changes to that argument made within the module also affect the value of the variable in the part of the program that made the call to that module.(T/F)
False
A hierarchy chart does not reveal details of the steps taken inside the module.(T/F)
True
When a variable is passed by reference to a module, changes to the value of the argument in the module will also affect the variable in the part of the program that sent that argument.(T/F)
True
An attempt to pass a non-variable argument into a reference variable parameter will cause an error.(T/F)
True
Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.(T/F)
True
In most languages, a module definition has three parts: a header, body, & footer.(T/F)
False: (header & body)
Which of the following is NOT a benefit of using modules when developing a program?
A) They make program development faster
B) Module code can be reused
C) They make Programs easier to debug
D) Programs which contain modules always run faster than programs without modules
D) Programs which contain modules always run faster than programs without modules: not necessarily true while A,B,C are always true
A module definition consists of the module header and the module….
Body
In a flowchart, a module call is repersented by a(n)__________ symbol with vertical bars at each side.
Rectangle