Solved

In Which of the Following Is the Variable Name Declared

Question 35

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents