Microsoft TS: Windows Applications Development with Microsoft .NET Framework 4 - 70-511 Exam Practice Test

You are developing a Windows Presentation Foundation (WPF) application.
The application consists of: - A window that contains controls organized into groups. - Groups that are ordered vertically and that have individual headings.
--
Controls within the groups that are ordered horizontally. Groups and controls that will be added dynamically at run time.
You need to ensure that the application meets the following requirements:
--
The window must be resizable without affecting the layout of the controls. The controls within the groups must be laid out such that there is a minimum amount of spacing between groups.
What should you do?
Correct Answer: A Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment. (Line numbers are included for reference only)

You need to ensure that a video file begins to play only when a user clicks Play.
Which code fragment should you insert at line 06?
Correct Answer: B Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
You configure PresentationTraceSource to track errors in a bound TextBox control in the application.
You need to choose the window that the Trace information is sent to.
Which Visual Studio window should you select?
Correct Answer: D Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList.
The number of items of the data-bound collection is fixed. However, users can modify the properties of each of the Product objects in the collection.
You need to ensure that changes made on the Product objects are automatically reflected in the ListBox control.
What should you do?
Correct Answer: A Vote an answer
You are developing a Windows Presentation Foundation (WPF) application. The WPF window contains a ListBox control that displays a list of customer names and genders.
You add the following markup segment to the application. (Line numbers are included for reference only.)

The WPF window renders the list of customers with empty Gender values.
You need to convert the null values for Gender to the following string: "Gender Not Specified".
Which binding attribute should you add at line 08?
Correct Answer: B Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality.
You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form.
Which enumeration member should you use?
Correct Answer: D Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. (Line numbers are included for reference only.)
01 <Canvas>
02 <Rectangle Stroke="Red" Stroke Thickness="5" Height="60"
03 Width-"60" Canvas. Leftoff Canvas.Top-"100"> 04
05 </Rectangle>
06 </Canvas>
You need to rotate the rectangle by 45 degrees by using its upper-left corner as the axis.
Which code fragment should you insert at line 04?
Correct Answer: C Vote an answer
You are creating a Windows Presentation Foundation (WPF) application.
A control periodically appears to alert the user of status changes within the application.
You need to specify that each time the control appears, it fades out within half a second.
Which markup segment should you add to the Storyboard element of the control?
Correct Answer: A Vote an answer
You are deploying a Windows Forms application. You use the Publishing wizard within
Visual Studio to configure ClickOnce options.
You need to ensure that a custom zone is created with specific permissions within the security tab of Visual Studio.
What should you do?
Correct Answer: C Vote an answer