Microsoft PRO: Design & Develop Wndws Apps Using MS .NET Framework 4 - 70-518 Exam Practice Test

You are designing a Windows Forms application that allows users to search a product catalog and place orders.
You have the following requirements:
- Display a progress indicator while the application is searching the catalog. - Ensure that users can cancel search operations.
You need to recommend an approach that meets the requirements.
What should you recommend?
Correct Answer: D
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The application retrieves customer data from an enterprise resource planning (ERP) system.
You need to ensure that the following requirements are met: - Customer data is retrieved only once.
- Customer data is available on multiple forms within the application.
- Forms can implement Two-Way binding to the customer datA.
What should you do?
Correct Answer: B
An existing Windows application uses a Windows Communication Foundation (WCF) Web service that is available only to employees.
You have the following requirements:
---
Make the WCF Web service available to business partners.
Enable business partners to send a profile token.
Ensure that the currently deployed application continues to function.
You need to recommend a solution that meets the requirements.
What should you recommend?
Correct Answer: A
You are designing a Windows Presentation Foundation (WPF) application. The main window of the WPF application includes two panels: panel1and 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 oneof 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?
Correct Answer: B
You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You need to use a replacement culture for the application at runtime.
You also need to ensure that the information in the custom culture will be available to the application.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: C,D
You are designing an n-tier Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008.
The application will replace an existing client/server application. The existing application was created by using Microsoft Visual Basic 6.0 and consists of a series of COM components that access a SQL Server database.
You plan to move the existing COM components into a Windows Communication Foundation (WCF) tier.
You need to ensure that the COM components can be replaced without impacting the existing user interface (UI) tier. You also need to ensure that the COM components can be replaced separately.
What should you do?
Correct Answer: D
You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application is used mostly in a disconnected scenario. The application requires offline data from a Microsoft SQL Server 2008 database. When the application connects to the network, data will be modified and synchronized.
You need to ensure that the application does not access the database server directly to synchronize data when online.
Which technology should you use?
Correct Answer: B
You are designing a complex and critical Windows desktop application by using Microsoft
.NET Framework 4 and Microsoft Visual Studio 2010.
You plan to implement a logging strategy for the application.
You need to record all unexpected errors that occur in the application.
What should you do?
Correct Answer: D
You are designing an update to an existing Windows Presentation Foundation (WPF) application. You plan to use Microsoft Visual Studio 2010. The updated WPF application will require a specific version of a third-party component.
You have the following requirements:
- Deploy the update by using Windows Installer. - Update the WPF application only if the required version of the third-party component is present on the client computer.
You need to recommend configuration settings for the application installer.
Which property should you recommend be set?
Correct Answer: B
You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You plan to design an instrumentation strategy for the application.
You need to ensure that the strategy meets the following requirements:
- Captures detailed performance information. - Enables or disables diagnostic messages by using an application configuration option without requiring the application to restart.
What should you design?
Correct Answer: B
You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
You plan to implement control caching to improve the loading time of a control. It is not required to refresh the content of the control after the application loads. The application will be compiled by using the .NET 4 client profile.
You need to ensure that the following requirements are met:
--
The control is reusable in multiple forms.
Data in the control is cached when the application is loaded.
What should you do?
Correct Answer: D
You are working with an existing Windows Presentation Foundation (WPF) application in Microsoft Visual Studio 2010. The WPF application requires approximately one minute to initialize before displaying its main window.
You have the following requirements:
---
Immediately display a splash screen when the WPF application launches. Allow for the display of an initialization progress bar on the splash screen. Close the splash screen when the WPF application is ready to display the main window.
You need to recommend an approach for meeting the requirements.
What should you recommend?
Correct Answer: D