MODULE 3 SELF TEST EXPECTED QUESTIONS WITH
VERIFIED ANSWERS
Question 1.
Given the following pseudocode, which is the parameter?Module main()
Call curveScore(82)
End ModuleModule curveScore(Integer score)
Declare Integer newScore
Set newScore = score + 5
Display newScore
End Module
ANSWER
score
Question 2.
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.
ANSWER
True
Question 3.
Given the following pseudocode, which is the argument?Module main()
Call curveScore(82)
End ModuleModule curveScore(Integer score)
Declare Integer newScore
Set newScore = score + 5
Display newScore
End Module
ANSWER
82
1/8
, Question 4.
An argument that is passed by ________ is not affected by a change to the content of the parameter
variable.
ANSWER
value
Question 5.
Modules can be written for commonly needed tasks, and those modules can be incorporated into each
program that needs them.
ANSWER
True
Question 6.
The top-down design process is sometimes referred to as stepwise refinement.
ANSWER
True
Question 7.
A module can have two or more variables with the same name because they are within the same
scope.
ANSWER
False
2/8
VERIFIED ANSWERS
Question 1.
Given the following pseudocode, which is the parameter?Module main()
Call curveScore(82)
End ModuleModule curveScore(Integer score)
Declare Integer newScore
Set newScore = score + 5
Display newScore
End Module
ANSWER
score
Question 2.
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.
ANSWER
True
Question 3.
Given the following pseudocode, which is the argument?Module main()
Call curveScore(82)
End ModuleModule curveScore(Integer score)
Declare Integer newScore
Set newScore = score + 5
Display newScore
End Module
ANSWER
82
1/8
, Question 4.
An argument that is passed by ________ is not affected by a change to the content of the parameter
variable.
ANSWER
value
Question 5.
Modules can be written for commonly needed tasks, and those modules can be incorporated into each
program that needs them.
ANSWER
True
Question 6.
The top-down design process is sometimes referred to as stepwise refinement.
ANSWER
True
Question 7.
A module can have two or more variables with the same name because they are within the same
scope.
ANSWER
False
2/8