PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 04?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the Entity Framework. Entity types in the model are generated by the Entity Data Model
generator tool (EdmGen.exe).
You write the following code. (Line numbers are included for reference only.)
01 Dim stream As MemoryStream = New HemoryStream()
02 Dim query = context.Contacts.Include(
“SalesOrderHeaders.SaiesOrderDetails”)
03 Dim contact = query.Where(“it.LastName – Slostname”,
New ObjectParameter(“lastnarae”, lastName)).First() 04
You need to serialize the contact and all of its related objects to the MemoryStream so that the
contact can be deserialized back into the model. Which code segment should you insert at line 04?

Which approach should you recommend?

You are planning an upgrade for an existing SharePoint 2010 intranet site to support a
Spanish language version of all existing sites. You need to meet the following requirements:
·All text on the sites must appear in both Spanish and English. .Every page on the current
English sites must also appear in Spanish. .All future pages must be created in both
languages in a consistent manner. .The upgrade must involve the least amount of human
effort and the least expenditure of hardware and software resources. Which approach
should you recommend?

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 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 6ID = SCOPE_IDENTITY()
You need to insert a new department and display the generated ID.
Which code segment should you use?

Which administrative tool should you use to achieve this task?

HOTSPOT
Your network contains a server named Server1 that runs Windows Server 2008 R2. On Server1, you
share a folder named Share1. Users report that when they try to open some of the folders in Share1,
they receive an Access is Denied error message. You need to ensure that when the users connect to
Share1, they only see the files and the folders to which they are assigned permissions. Which
administrative tool should you use to achieve this task? To answer, select the appropriate tool in the
answer area.

Which technology should you use?

You are designing a Windows application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The application retrieves data from multiple heterogeneous
data sources. The retrieved data is aggregated into a single record set. You need to ensure
that the application takes advantage of new multi-core server processors. Which technology
should you use?

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application
that uses the Entity Framework. The application defines the following Entity Data Model.

Within the .edmx file, the following function is defined.
<Functlon Name-“Round” RetuEnType-“Decimal”>
<Parametec Name-“val” Type-“Decimal” />
<DefiningExpression> CAST(val As Edm.Int32)
</DefiningExpression>
</Function>
The application includes the following LINQ query.
Dim query = From detail In context.SalesOrderDetails Select detail.LineTotal.Round()

You need to ensure that the Round function executes on the database server when the query is
executed. Which code segment should you use?