Multiple Choice
When a variable or constant is required by multiple methods in a GUI program, where should it be defined?
A) Inside one of the methods used by the GUI.
B) Inside a nested method shared by both methods.
C) Outside of the methods, but inside of the Form class shared by both methods.
D) Inside of an inherited class.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: What accessibility modifier allows access to a
Q3: A declaration for a method that receives
Q4: What will a Click() method that responds
Q5: What are the components of a C#
Q6: What optionally declared method modifier can set
Q7: What are the components of a C#
Q8: The keyword static is used with Main()
Q9: What keyword modifier indicates that a method
Q10: Arrays, like all objects, are passed by
Q11: When a method resides entirely within another