nerdexam
Microsoft

70-516 · Question #228

70-516 Question #228: Real Exam Question with Answer & Explanation

Sign in or unlock 70-516 to reveal the answer and full explanation for question #228. The question stem and answer options stay visible for context.

Question

You use Microsoft .NET Framework 4 to develop an application. You write the following code to update data in a Microsoft SQL Server 2008 database. (Line numbers are included for reference only,) 01 Private Sub ExecuteUpdate(ByVal cmd As SqlCommand, ByVal connString As String, ByVal updateStrat As String) 03 End Sub You need to ensure that the update statement executes and that the application avoids connection leaks. Which code segment should you insert at line 02?

Options

  • ADim conn As SqlConnection =
  • BUsing conn As New SqlConnection(connString)
  • CUsing conn As New SqlConnection(connString)
  • DDim conn As SqlConnection =

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 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 70-516 Practice