Logic ch3 Review Questions Flashcards
(25 cards)
Modules make it possible for programmers to work in teams
true
The ending terminal symbol for modules reads ________ because it marks the point where the computer returns to the part of the program that called the module.
return
What phrase is placed in the starting terminal symbol of a module in a flowchart?
name of the module
Which type of variable is visible to every module and the entire program?
global
Function is another name for ________.
module
A pass by ________ argument means that the argument is passed into a parameter that will reference the content of the argument in the module.
reference
Because modules perform actions, most programmers prefer to use ________ in module names.
verbs
A(n) ________ variable acts as an alias for the variable that was passed into the module through an argument
reference
It is common practice in most programming languages to put a set of ________ after a module name.
parantheses
When an argument is passed by ________, it is not affected by a change of the content of the parameter variable.
value
Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.
T
The ________ of the program transfers to a module when the module call is made from the program.
Question 12 options:
The ________ of the program transfers to a module when the module call is made from the program.
Question 12 options:
The ________ of the program transfers to a module when the module call is made from the program.
Question 12 options:
The ________ of the program transfers to a module when the module call is made from the program.
Question 12 options:
The ________ of the program transfers to a module when the module call is made from the program.
control
The scope of a variable is the segment of the program in which the variable can be accessed.
T
A program’s code tends to simpler and easier to understand when it is ________.
modularized
The hierarchy chart does not reveal any details of the steps taken inside the module.
T
The top-down design process is sometimes called stepwise refinement
T
What is the term used for the variable that receives an argument that passed into a module?
parameter
Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?
global
A(n) ________ constant is a named constant that is available to every module in the program.
global
The scope of a(n) ________ variable begins at the variable’s declaration and ends at the end of the module in which the variable is declared
local
In most languages a module definition has three parts: a header, body, and footer.
F
When an argument is passed by value, the communication channel works only in one direction.
T
What is the term used for the memory address of the location of the statement immediately after the module call?
return point
To create a module you write its ________.
definition