Multiple Choice
In which of the following is the variable name declared as a global variable?
A) Start
Call getInput()
Call displayName()
Stop
Module getInput()
Declare String name
Display "Enter your name"
Input name
End Module
Module displayName()
Display "Your name is: " + name
End Module
B) Start
Call getInput()
Call displayName()
Stop
Module getInput()
Display "Enter your name"
Input name
End Module
Module displayName()
Declare String name
Display "Your name is: " + name
End Module
C) Start
Call name
Call getInput()
Call displayName()
Stop
Module getInput()
Display "Enter your name"
Input name
End Module
Module displayName()
Declare String name
Display "Your name is: " + name
End Module
D) Start
Declare String name
Call getInput()
Call displayName()
Stop
Module getInput()
Display "Enter your name"
Input name
End Module
Module displayName()
Display "Your name is: " + name
End Module
Correct Answer:

Verified
Correct Answer:
Verified
Q9: _ are available to all modules in
Q10: All variables declared in separate modules are
Q11: Functions can return more than one value.
Q12: A For loop is depicted like a
Q13: What happens if a module uses a
Q15: A _ error occurs when the wrong
Q16: Modularizing a program makes it more efficient
Q17: The flowchart shape for a called module
Q18: Structured programming, the method for creating all
Q19: Modules cannot call other modules.