nerdexam
Microsoft

70-516 · Question #97

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

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

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server 2008 database. You use the ADO.NET Entity Framework Designer to model entities. You add the following stored procedure to the database, and you add a function import to the model. CREATE PROCEDURE [dbo].[InsertDepartment] @Name nvarchar(50), @ID int NULL OUTPUT AS INSERT INTO Department (Name) VALUES (@Name) SELECT @ID = SCOPE_IDENTITY() You need to insert a new department and display the generated ID. Which code segment should you use?

Options

  • Ausing (SchoolEntities context = new SchoolEntities())
  • Busing (SchoolEntities context = new SchoolEntities())
  • Cusing (SchoolEntities context = new SchoolEntities())
  • Dusing (SchoolEntities context = new SchoolEntities())

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