nerdexam
GIAC

GSSP-.NET · Question #489

(Topic 4) 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…

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

Question

  • (Topic 4)

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
  • Dtry

How the community answered

(46 responses)
  • A
    7% (3)
  • B
    76% (35)
  • D
    17% (8)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice