PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to package the application updates and updates to the third party controls to ensure that they are su

You are packaging updates for multiple Windows Presentation Foundation (WPF)
applications by using Microsoft .NET Framework 4. Updates to the applications and to
third-party control files are available. Updates to the applications have dependencies upon
updates to the third-party control files. An update script is run at logon that allows only a
single command to be executed. You need to package the application updates and updates
to the third party controls to ensure that they are successfully installed. What should you
do?

You need to ensure that entities can be sent to the service as XML

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
use Plain Old CLR objects (POCO) to model your entities.The application communicates with a
Windows Communication Foundation (WCF) Data Services service. You need to ensure that entities
can be sent to the service as XML. What should you do?

Which code segment should you insert at line 07?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application uses the ADO.NET Entity Framework to model entities. You define a Category class by
writing the following code segment. (Line numbers are included for reference only.)
01 public class Category
02 {
03 public int CategoryID { get; set; }
04 public string CategoryName { get; set; }
05 public string Description { get; set; }
06 public byte[] Picture { get; set; }
07
08 }
You need to add a collection named Products to the Category class. You also need to ensure that the
collection supports deferred loading. Which code segment should you insert at line 07?

You need to ensure that when the user attempts to run the application, the user cannot use the application if

You are creating a Windows Presentation Foundation (WPF) application by using Microsoft
.NET Framework 4. You need to ensure that when the user attempts to run the application,
the user cannot use the application if a new version of the application is available. What
should you do?

Which deployment strategy should you use?

You are deploying an application on Windows client computers by using Microsoft .NET
Framework 4 and Microsoft Visual Studio 2010. You need to ensure that the deployment
package meets the following requirements: • Grants only the necessary permissions • Adds
a shortcut to the Windows Start menu • Registers the application within Programs and
Features • Can be published to a Web site Which deployment strategy should you use?

What should your model contain?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application.The
application connects to a Microsoft SQL Server database. The Data Definition Language (DOL) script
of the database contains the following code segment.
CREATE TABLE [Sales].[SalesOrderHeader](
[SalesOrdedD] [int] IDENTITY(1,1)NOT NULL,
(BillToAddressID][int] NOT NULL,
…CONSTRAINT [PK_SalesOrderHeader_SalesOrder1D]
PRIMARY KEY CLUSTERED ([SalesOrder1D]ASC)
)ALTER TABLE [Sales].[SalesOrderHeader]
WITH CHECK ADD CONSTRAINT [FK_SalesOrderHeader_Address]
FOREIGN KEY{[BilIToAddressID])
REFERENCES [Person] [Address](AddressID])
You create an ADO.NET Entity Framework model. You need to ensure that the entities of the model
correctly map to the DDL of the database. What should your model contain?

Which approach should you recommend?

You are designing a custom SharePoint 2010 solution package. It will include a feature that
contains a Web Part, which requires a custom assembly for its functionality. You need to
design the feature based on the following requirements: ·The Web Part must be a partial
trust application and support a custom Code Access Security (CAS) policy. .The solution
package must be deployed without the need of farm-level administrator permissions. Which
approach should you recommend?