PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

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?

Where should you install the trusted publisher certificate?

You are developing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will run in a partially trusted sandbox. You plan to deploy the application on client computers by using the ClickOnce deployment technology. You plan to sign the deployment and application manifest by using a trusted publisher certificate. You need to ensure that the following requirements are met:
* Users are not prompted for elevated permissions during application deployment.
* The application can request elevated permissions at runtime.
Where should you install the trusted publisher certificate?

Which code fragment should you use?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object contains the Name and PictureFilePath properties. You add a ListBox control to the application. You need to ensure that the pictures are displayed in the ListBox control. Which code fragment should you use?