nerdexam
GIAC

GSSP-.NET · Question #189

GSSP-.NET Question #189: Real Exam Question with Answer & Explanation

Sign in or unlock GSSP-.NET to reveal the answer and full explanation for question #189. The question stem and answer options stay visible for context.

Question

  • (Topic 2) Mark works as a Software Developer for GenTech Inc. He develops an application, named App1, using Visual Studio .NET. The application contains a Form control, named Form1, which enables users to edit information in a SQL Server database. Mark wants to save all the changes made by users in the database. He defines a boolean variable, named DataIsSaved, in the application code. DataIsSaved indicates whether or not all data are saved in the database. Mark wants to prevent Form1 from closing until all the changes are saved in the database. Which of the following code will he use to accomplish this?

Options

  • Aprotected void Form1_Leave(object sender, System.ComponentModel.CancelEventArgs
  • BCancel = false;
  • CCancel = true;
  • Dprotected void Form1_Leave(object sender, System.ComponentModel.CancelEventArgs
  • ECancel = true;
  • FCancel = false;
  • Gprotected void Form1_Closed(object sender,
  • HCancel = false;
  • ICancel = true;
  • Jprotected void Form1_Closing(object sender,

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.

Full GSSP-.NET Practice