GIAC
GSSP-.NET · Question #362
(Topic 3) David works as a Software Developer for McRobert Inc. He develops a Windows-based application, named App1, using Visual C# .NET. The application contains a Form control, named Form1. He…
The correct answer is B. private void Form1_Load(System.Object sender, System.EventArgs e). See the full explanation below for the reasoning.
Question
- (Topic 3)
David works as a Software Developer for McRobert Inc. He develops a Windows-based application, named App1, using Visual C# .NET. The application contains a Form control, named Form1. He wants to write code to initialize class-level variables, named Var1, Var2, and Var3, as soon as Form1 is instantiated. Which of the following code will he use to accomplish this?
Options
- Aprivate void Form1_Initialize(System.Object sender, System.EventArgs e)
- Bprivate void Form1_Load(System.Object sender, System.EventArgs e)
- Cprivate void Form1_New(System.Object sender, System.EventArgs e)
- Dprivate void Form1_Create(System.Object sender, System.EventArgs e)
How the community answered
(52 responses)- A2% (1)
- B79% (41)
- C6% (3)
- D13% (7)
Community Discussion
No community discussion yet for this question.