nerdexam
Microsoft

70-516 · Question #185

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

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

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application contains the following code segment. (Line numbers are included for reference only.) 01 class DataAccessLayer 02 { 03 private static string connString; 04 ... 05 ... 06 public static DataTable GetDataTable(string command){ 07 ... 08 ... 09 } 10 } You need to define the connection life cycle of the DataAccessLayer class. You also need to ensure that the application uses the minimum number of connections to the database. What should you do?

Options

  • AInsert the following code segment at line 04.
  • BInsert the following code segment at line 04.
  • CReplace line 01 with the following code segment.
  • DInsert the following code segment at line 07:

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