Solved

Case 4-1 Brian Is Trying His Best to Understand the Concept of Concept

Question 56

Multiple Choice

Case 4-1
Brian is trying his best to understand the concept of variable scope, so he calls his friend Molly for guidance.
-Brian has defined a variable named strNumberOfSongs within the click event handle for a Submit button,and he has been frustrated in his efforts to refer to this variable in the click event handler for a Clear button.What does Molly tell him is going on?


A) The variable strNumberOfSongs has no scope.
B) The variable strNumberOfSongs is a local variable.
C) The variable strNumberOfSongs was not declared correctly.
D) The variable strNumberOfSongs is a global variable.

Correct Answer:

verifed

Verified

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

Related Questions