GIAC
GSSP-NET · Question #301
GSSP-NET Question #301: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #301. The question stem and answer options stay visible for context.
Question
Sandra works as a Software Developer for ABC Inc. She develops a Windows form named MyForm1. She wants to add a Button control named button1 to a Panel control named panel1 at runtime. Therefore, she writes the following code: 1. private void MyForm1_Load(object sender, EventArgs e) 2. { 3. Button button1 = new Button(); 4. button1.Location = new Point(50,50); 5. button1.Size = new Size(100, 30); 6. button1.Text = "My First button"; 7. Panel panel1 = new Panel(); 8. panel1.Location = new Point(10, 100); 9. // Write code here 10. // Write code here 11. } Which of the following code statements will Sandra write in line numbers 9 and 10? (Line numbers are for reference only.) Each correct answer represents a part of the solution. Choose two.
Options
- AShe will write the following code statement in line number 9:
- BShe will write the following code statement in line number 9:
- CShe will write the following code statement in line number 9:
- DShe will write the following code statement in line number 10:
- EShe will write the following code statement in line number 10:
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.