CIS116: QUIZ 3

Oct 2nd, 2023
4.7 (114 reviews)
20 test answers
question
The arguments in a module call and the parameters listed in the module header must be of compatible data types.- True- False
answer
True
question
In most languages a module definition has three parts: a header, body, and footer.- True- False
answer
False
question
An attempt to pass a non-variable argument into a reference variable parameter will cause an error.- True- False
answer
True
question
The hierarchy chart does not reveal any details of the steps taken inside the module.- True- False
answer
True
question
What is the term used for the memory address of the location of the statement immediately after the module call?- Continue point- Resume address- Return address- Resume point- Return point
answer
Return point
question
The scope of the parameter variables is the entire program and it is visible to any statement in the program.- True- False
answer
False
question
Modules are commonly called what? - Procedures- Subroutines- Subprograms- Methods- All of these
answer
All of these
question
The module definition comprises the module header and the module ________.- Body- Statements- Call- Parameters- Arguments
answer
Body
question
A pass by reference argument establishes a two-way communication with the module, but the value of the argument cannot be modified via the reference variable.- True- False
answer
False
question
To execute a module, we must ________ it.- Parse- Define- Call- Debug- Compile
answer
Call
question
What tool would a programmer use to visualize the relationship between modules?- Flowchart- Hierarchy charts- Pseudo charts- Modular charts- None of these
answer
Hierarchy charts
question
What phrase is placed in the starting terminal symbol of a module in a flowchart? - Continue- Resume- Name of the module- Begin- Start
answer
Name of the module
question
The following is an example of a module ________.Call showNetPay()- Body- Definition- Header-Execution- Display
answer
Execution
question
When an argument is passed by value, the communication channel works only in one direction.- True- False
answer
True
question
In a flowchart, the module call is represented by a ________ symbol with vertical bars at each side.- Parallelogram- Square- Rhombus- Rectangle- None of these
answer
Rectangle
question
Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.- True- False
answer
True
question
Modules make it impossible for programmers to work in teams.- True- False
answer
False
question
Function is another name for ________.- Module- Variable- Reference- Sub class
answer
Module
question
Which of the following is not a benefit of using modules?- Simpler Code- Faster Development- Code Reuse- Better Testing- None of these
answer
None of these
question
Passing an argument by ________ means that only a copy of the argument's value is passed into the parameter variable.- Value- Constant- Reference- Variable
answer
Value
1 of 20
question
The arguments in a module call and the parameters listed in the module header must be of compatible data types.- True- False
answer
True
question
In most languages a module definition has three parts: a header, body, and footer.- True- False
answer
False
question
An attempt to pass a non-variable argument into a reference variable parameter will cause an error.- True- False
answer
True
question
The hierarchy chart does not reveal any details of the steps taken inside the module.- True- False
answer
True
question
What is the term used for the memory address of the location of the statement immediately after the module call?- Continue point- Resume address- Return address- Resume point- Return point
answer
Return point
question
The scope of the parameter variables is the entire program and it is visible to any statement in the program.- True- False
answer
False
question
Modules are commonly called what? - Procedures- Subroutines- Subprograms- Methods- All of these
answer
All of these
question
The module definition comprises the module header and the module ________.- Body- Statements- Call- Parameters- Arguments
answer
Body
question
A pass by reference argument establishes a two-way communication with the module, but the value of the argument cannot be modified via the reference variable.- True- False
answer
False
question
To execute a module, we must ________ it.- Parse- Define- Call- Debug- Compile
answer
Call
question
What tool would a programmer use to visualize the relationship between modules?- Flowchart- Hierarchy charts- Pseudo charts- Modular charts- None of these
answer
Hierarchy charts
question
What phrase is placed in the starting terminal symbol of a module in a flowchart? - Continue- Resume- Name of the module- Begin- Start
answer
Name of the module
question
The following is an example of a module ________.Call showNetPay()- Body- Definition- Header-Execution- Display
answer
Execution
question
When an argument is passed by value, the communication channel works only in one direction.- True- False
answer
True
question
In a flowchart, the module call is represented by a ________ symbol with vertical bars at each side.- Parallelogram- Square- Rhombus- Rectangle- None of these
answer
Rectangle
question
Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.- True- False
answer
True
question
Modules make it impossible for programmers to work in teams.- True- False
answer
False
question
Function is another name for ________.- Module- Variable- Reference- Sub class
answer
Module
question
Which of the following is not a benefit of using modules?- Simpler Code- Faster Development- Code Reuse- Better Testing- None of these
answer
None of these
question
Passing an argument by ________ means that only a copy of the argument's value is passed into the parameter variable.- Value- Constant- Reference- Variable
answer
Value