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
Answer: D
You might also like to view...
In OpenOffice, many common typing errors are anticipated and corrected as you type via the ________ feature
A) Error Correct B) Grammar Check C) Spell Check D) AutoCorrect
Which of the following is a "possible" indicator of an actual incident, according to Donald Pipkin?
A. unusual consumption of computing resources B. activities at unexpected times C. presence of hacker tools D. reported attacks