Title: Module 6 Quiz (Ungraded)
Course: COP 1510 Programming Concepts > Section: Module 6 - Modules

Q: In a flowchart, the module call is represented by a ________ symbol with vertical bars at each side.
- Parallelogram
- Square
- Rhombus
- Rectangle
- None of these
A: Rectangle

Q: What is the term used for the memory address of the location of the statement immediately after the module call?
- Return address
- Return point
- Continue point
- Resume point
- Resume address
A: Return point

- Definition
- Header
- Body
- Display
- Execution
A: Execution

Q: The module definition comprises the module header and the module ________.
- Body
- Statements
- Call
- Arguments
- Parameters
A: Body

Q: Which of the following is not a benefit of using modules?
- Simpler Code
- Faster Development
- Code Reuse
- Better Testing
- None of these
A: None of these

Q: What tool would a programmer use to visualize the relationship between modules?
- Flowchart
- Hierarchy charts
- Pseudo charts
- Modular charts
- None of these
A: Hierarchy charts

Q: What is the term used for the variable that receives an argument that passed into a module?
- Global
- Local
- Parameter
- Constant
- None of these
A: Parameter

Q: Passing an argument by ________ means that only a copy of the argument's value is passed into the parameter variable.
- Value
- Constant
- Reference
- Variable
- None of these
A: Value

Q: Which type of variable is visible to every module and the entire program?
- Local
- Pass by value
- Reference
- Global
- Pass by reference
A: Global

Q: A pass by ________ argument means that the argument is passed into a parameter that will reference the content of the argument in the module.
- Value
- Constant
- Reference
- Variable
- None of these
A: Reference

Q: Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
- Local
- Pass by value
- Reference
- Global
- Pass by reference
A: Global

Q: When an argument is passed by ________, it is not affected by a change of the content of the parameter variable.
- Value
- Constant
- Reference
- Variable
- None of these
A: Value

Q: Function is another name for ________.
- Module
- Variable
- Reference
- Sub class
- None of these
A: Module

Q: ________ variables are useful for establishing two-way communication between modules.
- Value
- Constant
- Reference
- I/O
- None of these
A: Reference

Q: What phrase is placed in the starting terminal symbol of a module in a flowchart?
- Start
- Begin
- Name of the module
- Continue
- Resume
A: Name of the module

Q: True/False: The scope of a variable is the segment of the program in which the variable can be accessed.
- True
- False
A: True

Q: True/False: The top-down design process is sometimes called stepwise refinement.
- True
- False
A: True

Q: True/False: The arguments in a module call and the parameters listed in the module header must be of compatible data types.
- True
- False
A: True

Q: True/False: A module can have two variables of the same name because they are within the same scope.
- True
- False
A: False

Q: True/False: When an argument is passed by value, the communication channel works only in one direction.
- True
- False
A: True