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:

Verified
Correct Answer:
Verified
Q19: Users always follow the expected path.
Q20: The Double data type can store a
Q21: The maximum size of a TextBox object
Q54: When setting up a mask for a
Q59: A(n)_ Exception occurs when a calculation creates
Q90: A _ can be represented by using
Q91: A prefix of _ is used to
Q93: The ampersand character at the end of
Q101: A variable is _.<br>A) a place where
Q111: By default,a text box will display as