Solved

Critical Thinking Questions Case 1 Brian Is Trying His Best

Question 97

Multiple Choice

Critical Thinking Questions Case 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 was not declared correctly.
C) The variable strNumberOfSongs is a local variable.
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

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