web analytics

Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam (11-20)

QUESTION 11
You are designing a Windows Presentation Foundation (WPF) application that displays thumbnail images of photographs. The thumbnails are arranged in rows and columns.
The number of columns must automatically update based on the size of the application window.
You need to recommend a container for displaying all the thumbnail images at the same size.
Which container should you recommend?

A.    a WrapPanel control
B.    a StackPanel control
C.    a Canvas control
D.    a DockPanel control

Answer: A

QUESTION 12
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4. The application will run on Windows 7-based kiosks that are located indoors and outdoors. The kiosk displays have a photo sensor that will update the application with the current ambient luminosity.
You need to ensure that the user interface (UI) of the application dynamically changes the application theme based on the ambient luminosity.
What should you use?

A.    a visual state manager to add VisualStateGroup objects
B.    a VisualBrush control to paint the UI
C.    a RenderTransform control applied to the root canvas
D.    an attached behavior to change a merged resource dictionary

Answer: D

QUESTION 13
You are designing a Windows Presentation Foundation (WPF) application.
The WPF application must always display real-time status information while the user is working in the WPF application.
You need to recommend a container for displaying the status information.
Which container should you recommend?

A.    a modeless window
B.    a console window
C.    a message box
D.    a modal window

Answer: A

QUESTION 14
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?

A.    Use a BackgroundWorker component to perform the search.
B.    Implement the search as a Windows Communication Foundation (WCF) service by using the AsyncPattern property of the OperationContract attribute.
C.    Implement the search as a duplex service.
D.    Execute the search on the user interface thread. Provide a Cancel button to cancel the search.

Answer: A

QUESTION 15
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.    an ElementHost control
C.    a WindowsFormsHost control
D.    a Canvas control

Answer: B

QUESTION 16
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The application allows users to view product details. Product managers can modify the product details for the products that they manage.
You plan to design the application by using the Model-View-ViewModel (M-V-VM) pattern.
You need to ensure that the product details can be viewed by all users and modified only by product managers.
What should you do?

A.    Create a separate StackPanel in the window to modify data.
Create a separate StackPanel in the window to view data.
B.    In the ViewModel, disable all input controls if the user’s role is not a Product Manager.
C.    Create a separate window to modify data.
Create a separate window to view data
D.    In the ViewModel, hide all input controls if the user’s role is a Product Manager.

Answer: B

QUESTION 17
You are designing Windows Presentation Foundation (WPF) applications by using Microsoft .NET Framework 4.
You need to maintain a common appearance and behavior across all applications in your company. You also need to ensure that the look and feel of the applications can be modified without recompiling them.
What should you create?

A.    a merged resource dictionary
B.    user controls in a shared assembly
C.    an instance of the System.Windows.Media.StyleSimulations class
D.    custom controls in a shared assembly

Answer: A

QUESTION 18
You are designing a mission-critical Windows Presentation Foundation (WPF) application that uses .NET Framework 4.
You need to recommend an approach for identifying repair and recovery time.
What should you recommend?

A.    Test for buffer overflows.
B.    Use component stress testing.
C.    Test the failover technologies.
D.    Use integration stress testing.

Answer: C

QUESTION 19
You are working with a Windows Presentation Foundation (WPF) application that uses .NET Framework 4. Your team is responsible for making significant changes to the application functionality.
You need to recommend an approach for identifying features that no longer work properly as a result of code changes.
Which testing methodology should you recommend?

A.    stress testing
B.    integration testing
C.    stability testing
D.    regression testing

Answer: D

QUESTION 20
You are designing a Windows Forms application. The application connects to a Microsoft SQL Server 2008 database.
You need to recommend an approach for retrieving and logging all informational messages and error messages reported by the database.
What should you recommend?

A.    Retrieve informational messages in a SqlException object.
Retrieve error messages by creating a handler for the InfoMessage event.
B.    Retrieve informational messages by creating a handler for the InfoMessage event.
Retrieve error messages in a SqlException object.
C.    Retrieve informational messages and error messages by creating a handler for the InfoMessage event.
D.    Retrieve informational messages and error messages in a SqlException object.

Answer: B

Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam