QUESTION 71
You are designing a new feature for an existing Windows Forms application by using Microsoft .NET Framework 4. The application contains multiple forms that are loaded into a parent Multiple Document Interface (MDI) form. Your company policy does not allow the use of third-party controls. You need to ensure that the new feature meets the following requirements:
– It allows users to change the colors of the model and communicates thecolor selections back to the application.
– It allows the model to scale, based on the user’s client computer displayresolution.
– It provides a three-dimensional scale model.
– It is a child form in the MDI application.
What should you do?
A. – Design the new feature in the existing Windows Forms application as a Windows form.
– Add the form as a child form to the MDI window.
B. – Design the new feature in a new application by using Windows Presentation Foundation (WPF).
– Invoke the new WPF application from the existing Windows Forms application.
C. – Design the new feature in a new Windows Presentation Foundation (WPF) application.
– Host the existing application inside the new WPF application by using the Windows Forms Host class.
D. – Design the new feature by using a Windows Presentation Foundation (WPF) user control.
– Use the Element Host class to host the WPF user control in the existing Windows Forms application.
Answer: D
QUESTION 72
You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will consist of several data entry forms. Each data entry form requires a user to enter phone numbers and addresses. You need to design a solution that promotes code reusability. What should you do?
A. Add multiple text boxes for each data entry form.
B. Use the same style resource for each data entry form.
C. Create a new user control and reference it on each data entry form.
D. Create a new merged resource dictionary and reference it from each data entry form.
Answer: C
QUESTION 73
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4. The application consists of multiple data entry screens. You need to ensure that users can return to previous screens. You also need to ensure that users can view a history of screens. What should you do?
A. Create buttons to allow a user to open a new Window for the data entry screens.
B. Create buttons to allow a user to open a new Window as an MDI child window for the data entry screens.
C. Create hyperlinks to allow a user to move between data entry screens.
Use the Navigation Service class to manage navigation history.
D. Create hyperlinks to allow a user to move between data entry screens.
Use the Navigation Progress Event Rags class to manage navigation history.
Answer: C
QUESTION 74
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
You create a control named Help Viewer to view the Help documentation of the application. The Help Viewer control must be available to all windows in the application.
You need to ensure that the application allows users to perform the following tasks:
– Hide the Help Viewer control
– Bookmark their location in the documentation and return to the bookmark from any window
– Dock the Help Viewer control
You create a main window as a base class.
What should you do next?
A. – Add the Help Viewer control to the window at runtime.
– Inherit all other window classes in the application from the main window base class.
B. – Add the Help Viewer control to a Dock Panel control at runtime.
– Inherit all other window classes in the application from the main window base class.
C. – Add the Help Viewer control and a Frame control to a Dock Panel control to the window at runtime.
– Create all other windows in the application as pages and host them in the Frame control.
D. – Add the Help Viewer control and a Frame control to a Stack Panel control to the window at runtime.
– Create all other windows in the application as pages and host them in the Frame control.
Answer: C
QUESTION 75
You are designing an application by using Microsoft NET Framework 4 and Microsoft VisualStudio 2010.
You are creating an application in Domain A that creates an application domain named Domain B. Code in Domain B throws an Application Exception Code and Domain A throws an unhandled File Not Found Exception.
You need to ensure that the exception thrown in Domain B is properly handled in Domain.
What should you do?
A. Create a separate thread in Domain B to handle exceptions in Domain A
B. Sign the assembly and register *
C. Sign the assembly and place * in the application folder
D. Sign the assembly that contains the exception by using a strong name and deploy the assembly to the Global Assembly Cache (GAC).
Answer: D
QUESTION 76
You are creating a Windows Presentation Foundation (WPF) client application Windows Presentation Foundation (WPF) client application by using Microsoft NET Framework 4 and Microsoft Visual Studio 2010.
You plan to create two application domains named AppDom1 and AppDom2.
– AppDom1 will be hosted by a Shell host.
– AppDom2 will be hosted by a custom-designed host
– AppDom2 will access unmanaged application programming interfaces (APIs).
– AppDom2 contains user-defined custom exceptions.
You need to ensure that exceptions thrown in AppDom2 can be handled by AppDom1 What should you do?
A. Add a DispatcherUnhandledException event handler to AppDom1.
B. Add the assembly that defines the user-defined custom exception class to the application base for AppDom1
C. Derive the user-defined custom exception class from the System ApplicationException class,
D. Use a strong name for the assembly to contain the user-defined custom exception class
Answer: B
QUESTION 77
You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.The application vii use multiple worker threads and a single user interface (UI) thread.
You plan to design the exception.-handling strategy for the application.
You need to ensure that all exceptions that occur can be handled.
What should you do?
A. Use a DispatcherUnhandledExceptionEvent handler on the main Ii thread
B. Use a DispatcherUnhandledExceptionEvent handler on each worker thread
C. Write an AppDomam UnhandledExceptionEvent handler
D. Write a general catch block for the System Exception types after any specific catch statements on the main user interface thread
Answer: B
QUESTION 78
You have developed a Windows application by using Microsoft NET Framework 4, WindowsPresentation Foundation (WPF), and Microsoft SQL Server 2008.The application is deployed as an XANL Browser Application (XBAP) and executes in theInternet Zone in Internet Explorer. The application updates data in a SQL Server 2008 database.Users report that a Security Exception occurs when the application attempts to save data to the database. You need to design a solution to resolve the problem. What should you do?
A. Redesign the XBAP application by using partial trust.
B. Redesign the XBAP code to utilize stored procedures
C. Design a WCF Service tier to provide database access.
D. Design a data access layer that uses ASP.NET Entity Framework to communicate with the database by using the System Data.Sql Client class.
Answer: C
QUESTION 79
You deploy an n-tier Windows client application by using Microsoft NET Framework 4.The middle tier of the application will generate an XML file. The XML file will be stored on a shared network drive and will be used by the user interface (UI) tier. The UI tier will contain a method that accesses the Windows clipboard on client computers.
You plan to use Code AccessSecurity(CAS) to secure the application.
You need to ensure that the application can run on Windows 7 client computers that have UserAccess Control(UAC) enabled.
Which two permission sets should you apply to the application during deployment? (Each correct answer presents part of the solution. Choose two.)
A. File IO
B. User Interface
C. Directory Services
D. Isolated Storage File
Answer: AB
QUESTION 80
You have deployed an application by using Microsoft NET Framework 4.You are designing an application update strategy to check for updates.You need to ensure that the design meets the following requirements:
– Uses Click Once deployment
– Supports high bandwidth networks
– Updates by using a background thread
– Updates without user intervention
Ensures that the old version of the application does not run when a new version is available When should you check for updates?
A. after application startup
B. before application startup
C. after the Bootstrapper package startup
D. before the Bootstrapper package startup
Answer: A
Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam