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...
What main function is provided to all versions of Microsoft Windows by the Windows Driver Model (WDM)?
What will be an ideal response?
OpenOffice Calc is an example of a ________ program
A) word processing B) spreadsheet C) database D) presentation
The only social media with higher engagement than Pinterest is ________
A) Tumblr B) LinkedIn C) Facebook D) Twitter
When Manual Hyphenation is selected, hyphens can still be inserted at the user's discretion
Indicate whether the statement is true or false