Microsoft PRO: Design & Develop Wndws Apps Using MS .NET Framework 4 Sample Questions:
1. You are designing a Windows Forms application.
You intend to display graphics on a form in the application by using a third-party Windows Presentation Foundation (WPF) control.
You need to recommend a control for hosting the third-party WPF control.
What should you recommend?
A) A Panel control
B) A Canvas control
C) AnElementHost control
D) A windowsFormsHost control
2. 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?
A) Design a static class for the data that implements the INotifyPropertyChanged interface. Raise the PropertyChanged event to notify the forms when data is changed.
B) Store the results of the query in a static Data Table object that is used by all the forms.
C) Store the results of the query in a local XML file. Bind all forms to an XMLDataAdapter object that references the local XML file.
D) Design a static class for the data that implements the IObservable interface. Subscribe to the static class from each of the forms that use the datA.
3. You are developing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008.
New features that require changes to be made to the database schema are added to the application every week.
You need to ensure that the changes made to the database schema do not require the application to be recompiled.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A) Modify the conceptual schema xml file when the schema changes occur.
B) Modify the xml mapping file when the schema changes occur.
C) Build a storage model and use it to access data from the business entities.
D) Build a conceptual model and use it to access data from the business entities.
4. You are designing a Windows Presentation Foundation (WPF) application.
The application calls methods that perform long-running computational tasks.
You need to recommend an approach for ensuring that the application remains responsive while the tasks are executing.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A) Use synchronous method calls from a thread other than the thread on which the user interface runs.
B) Use synchronous method calls from the user interface thread.
C) Use asynchronous method calls from the user interface thread.
D) Run the user interface from a new multi-threaded apartment (MTA) thread.
5. You are designing an application by using Windows Presentation Foundation (WPF) and
Microsoft .NET Framework 4.
The user interface (UI) tier of the application will be implemented in WPF.
The middle tier of the application is implemented by using an existing COM component.
The middle tier contains a long-running method named ProcessDatA.
You need to ensure that users can continue to use the UI while ProcessData is running.
What should you do?
A) Use the Invoke method of the Dispatcher class to call ProcessDatA.
B) Call the DoEvents method of the Application class before invoking ProcessDat
C) Use an asynchronous worker thread to call ProcessDatA.
D) Call the Run method of the Dispatcher class before invoking ProcessDatA.
Solutions:
| Question # 1 Answer: C | Question # 2 Answer: B | Question # 3 Answer: A,B | Question # 4 Answer: A,D | Question # 5 Answer: C |














1682 Customer Reviews
Quality and ValueITCertKing Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.
Tested and ApprovedWe are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.
Easy to PassIf you prepare for the exams using our ITCertKing testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.
Try Before BuyITCertKing offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.
