nerdexam
Microsoft

70-516 · Question #135

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Forms application. The application connects to a Microsoft SQL Server database. You need to find out whether…

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

Deploying and Troubleshooting Data Access

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Forms application. The application connects to a Microsoft SQL Server database. You need to find out whether the application is explicitly closing or disposing SQL connections. Which code segment should you use?

Options

  • Astring instanceName = Assembly.GetEntryAssembly().FullName;
  • Bstring instanceName = Assembly.GetEntryAssembly().GetName().Name;
  • Cstring instanceName = Assembly.GetEntryAssembly().FullName;
  • Dstring instanceName = Assembly.GetEntryAssembly().GetName().Name;

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.

Topics

#connection pooling#performance counters#SqlConnection#monitoring
Full 70-516 Practice