nerdexam
GIAC

GSSP-NET · Question #458

Allen works as a Software Developer for Mansoft Inc. He develops an application using Visual Studio .NET 2005. The application connects to a SQL Server database using a SqlConnection object named…

The correct answer is B. try. See the full explanation below for the reasoning.

Question

Allen works as a Software Developer for Mansoft Inc. He develops an application using Visual Studio .NET 2005. The application connects to a SQL Server database using a SqlConnection object named NewConnection. Allen creates a few stored procedures in the database. Sometimes an error occurs, when a user executes stored procedures. Allen wants to add an error-handling code to the application to handle errors that occur on executing stored procedures. Which of the following code segments will he use to accomplish this task?

Options

  • Atry
  • Btry
  • Ctry
  • Dtry

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    84% (31)
  • C
    11% (4)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice