PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities. The application includes two
ObjectContext instances named context1 and context2. You need to persist the changes in both
object contexts within a single transaction. Which code segment should you use?

What should you recommend?

You are designing a Windows Presentation Foundation (WPF) application. The application
data files have the file name extension.abc. The WPF application installer must meet the
following requirements: • Add a shortcut to the desktop. • Install infrequently used
assemblies on demand. • Associate the .abc file name extension with the WPF application. •

Roll back the installation in the event of a failure. You need to recommend a deployment
method. What should you recommend?

Which server role, role service, or feature should you install?

Your network contains an Active Directory forest. The forest contains a member server named
Server1 that runs Windows Server 2008 R2. You configure Server1 as a VPN server. You need to
ensure that only client computers that have up-to-date virus definitions can establish VPN
connections to Server1. Which server role, role service, or feature should you install?

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to develop an application.
You use the ADO.NET Entity Framework Designer to model entities. The application includes two

ObjectContext instances named context1 and context2. You need to persist the changes in both
object contexts within a single transaction. Which code segment should you use?

You need to ensure that when the user connects to the central data store and retrieves new data…

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. The application allows users to
make changes to entities while disconnected from the central data store. You need to ensure that
when the user connects to the central data store and retrieves new data, the application meets the
following requirements:
• Changes made to the local data store in disconnected mode are preserved.
• Entities that have already been loaded into the local data store, but have not been modified by the
user, are updated with the latest data.
What should you do?

What should you recommend?

You are designing an ASP.NET Web application that stores data in a Microsoft SQL Server
2008 database on a remote server. You must meet the following requirements: Ensure that
users’ actions can be traced on each server by using the security audit log. Minimize the
risk of server components executing in the user’s context. You need to recommend an
approach for accessing the database. What should you recommend?

You need to ensure that the clickButton button appears

You create a Web Part that contains the following code segment. (Line numbers are included for

reference only.) 01 public class HebPart1: WebPart 02 { 03 public VebPart1() {} 04 05 protected
override void CreateChildControlst) 06 { 07 Button clickButton = new Button(); 08 09
base.CreateChildControls(); 10 ] 11 12 protected override void BenderContents(HtrolTextWriter
writer) 13 { 14 15 base.RenderContents(writer); 16 } 17 } You discover that the clickButton button
does not appear. You need to ensure that the clickButton button appears. What should you do?

What should you recommend?

You are designing a Windows Presentation Foundation (WPF) application. The main
window of the WPF application includes two panels: panel1 and panel2. The WPF
application must meet the following requirements: • Panel2 must be enabled only after
users have entered values into multiple text boxes in panel1. • The background color of
panel2 must be set to a specific color based on one of the text box values in panel1. • The
background color of panel2 must be set at the same time the panel is enabled. You need to
recommend an approach for meeting the requirements. What should you recommend?

Which approach should you recommend?

You are designing a multi-lingual publishing Web site using SharePoint 2010.
Administrators have installed language packs for Japanese, Chinese, and Vietnamese on
the server. Users whose browser locale is set to Japanese, Chinese, or Vietnamese must
be able to navigate to a corresponding language-specific site with as few clicks as possible.
Your design needs to ensure that this is accomplished with no custom development. Which
approach should you recommend?