PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that both applications can use the common utility assembly without any security-related exc

You are upgrading a stand-alone Windows Presentation Foundation (WPF) application and
an XAML browser application (XBAP) to Microsoft .NET Framework 4. You plan to add
.NET 4 types and members to both applications. Both applications consume a common
utility assembly that modifies files on a local file system. The utility assembly requires full
trust. You need to ensure that both applications can use the common utility assembly
without any security-related exceptions. What should you do?

Which approach should you recommend?

You are designing a SharePoint 2010 solution to manage statements of work. You need to
design the solution according to the following requirements: ·Store the customer ID,
purchase order number, estimated completion date, and other fields associated with specific
documents as they are uploaded. .The information must be created so that it can be set
within the Microsoft Word document information panel. .Programmatically execute a series
of tasks, including assigning tasks to validate the information and creating team sites, based
on information related to each document. .These tasks must run to completion, even if the
server is rebooted. Which approach should you recommend?

Which two XML element types should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You use Entity SQL of the ADO .NET Entity
Framework to retrieve data from the database. You need to define a custom function in the
conceptual model. You also need to ensure that the function calculates a value based on properties
of the object. Which two XML element types should you use? (Each correct answer presents part of
the solution Choose two.)

You need to ensure that all Contractors are bound to the Contractor class

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Sever 2008 database. The database includes a table that
contains information about all the employees. The database table has a field named EmployeeType
that identifies whether an employee is a Contractor or a Permanent employee. You declare the
employee entity base type. Yo create a new Association entity named Contractor that inherits the
Employee base type. You need to ensure that all Contractors are bound to the Contractor class.
What should you do?

What should you create?

You are designing a Windows client application by using Microsoft .NET Framework 4 and
Microsoft Visual Studio 2010. The application will read and write data that is stored in a
mainframe application. A hardware device that is located between the application and the
mainframe removes all XMLformatted messages. You need to ensure that the application
can request and receive data from the mainframe application. What should you create?

Which method should you call before persisting changes?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application.
Theapplication uses the ADO.NET Entity Framework to model persistence-ignorant entities. The
applicationoperates in a disconnected mode. You need to ensure that changes made to local entities
while the application is in the disconnected mode are correctly persisted. Which method should you
call before persisting changes?

Which code segment should you insert at line 11?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You write the following code segment that
executes two commands against the database within a transaction. (Line numbers are included for
reference only.)
01 using (SqlConnection connection = new SqlConnection(cnnStr)) {
02 connection.Open();
03 SqlTransaction sqlTran = connection.BeginTransaction();
04 SqlCommand command = connection.CreateCommand();
05 command.Transaction = sqlTran;
06 try {
07 command.CommandText = “INSERT INTO Production.ScrapReason(Name) VALUES(‘Wrong
size’)”;
08 command.ExecuteNonQuery();
09 command.CommandText = “INSERT INTO Production.ScrapReason(Name) VALUES(‘Wrong
color’)”;
10 command.ExecuteNonQuery();
11
12 }
You need to log error information if the transaction fails to commit or roll back. Which code segment
should you insert at line 11?