Microsoft TS: Windows Applications Development with Microsoft .NET Framework 4 - 70-511 Exam Practice Test
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a
Windows Presentation Foundation (WPF) application.
The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually.
You need to create an automated and iterative process to test the application.
What should you do?
Windows Presentation Foundation (WPF) application.
The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually.
You need to create an automated and iterative process to test the application.
What should you do?
Correct Answer: B
Vote an answer
You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4.
You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer.
What should you do?
You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer.
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.

You need to implement the MyProject.MyConverter class.
What should you do?

You need to implement the MyProject.MyConverter class.
What should you do?
Correct Answer: A
Vote an answer
DRAG DROP
You have a Windows Presentation Foundation (WPF) application named App1.
You plan to deploy App1 by using ClickOnce. App1 will be deployed from an Internet Web server, a network share, and a DVD.
You need to identify which security zone will be used by Appl based on the deployment method source.
What should you identify? (To answer, drag the appropriate security zones to the correct deployment methods. Each security zone may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

You have a Windows Presentation Foundation (WPF) application named App1.
You plan to deploy App1 by using ClickOnce. App1 will be deployed from an Internet Web server, a network share, and a DVD.
You need to identify which security zone will be used by Appl based on the deployment method source.
What should you identify? (To answer, drag the appropriate security zones to the correct deployment methods. Each security zone may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Correct Answer:

You are developing a Windows Presentation Foundation (WPF) application to display service cases by category in a ListBox You create a class named Case with the properties Description and Category, as follows.

You bind to the IstService control a static resource named ServiceCases.
You need to ensure that the service cases are grouped by category.
What should you do in the MainWindow.xaml file?

You bind to the IstService control a static resource named ServiceCases.
You need to ensure that the service cases are grouped by category.
What should you do in the MainWindow.xaml file?
Correct Answer: C
Vote an answer
You plan to create a Windows Presentation Foundation (WPF) user control.
You need to create a WPF user control that contains 12 areas that are identical in size.
The solution must meet the following requirements:
- Ensure that if the control is resized, the relative size of the areas will remain the same. - Minimize development effort.
Which control should you use?
You need to create a WPF user control that contains 12 areas that are identical in size.
The solution must meet the following requirements:
- Ensure that if the control is resized, the relative size of the areas will remain the same. - Minimize development effort.
Which control should you use?
Correct Answer: E
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" StrokeThickness-"5" Height-"60"
03 Width-"60" Canvas. Left100" 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?
01 <Canvas>
02 <Rectangle Stroke-"Red" StrokeThickness-"5" Height-"60"
03 Width-"60" Canvas. Left100" 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: B
Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
You are implementing a test strategy for the application.
You need to ensure that the test class can repeat user input.
From which base class should the test class inherit?
You are implementing a test strategy for the application.
You need to ensure that the test class can repeat user input.
From which base class should the test class inherit?
Correct Answer: B
Vote an answer
You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4.
You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer.
What should you do?
You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer.
What should you do?
Correct Answer: A
Vote an answer
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?
----
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: B
Vote an answer
DRAG DROP
You are developing a Windows Presentation Foundation (WPF) application.
You are creating a screen named NewsList that contains a ListView control. NewsList must meet the following requirements:
NewsList must display data from an object named News.
Each item displayed in NewsList must use a data template named dataTemplate1.
NewsList must be displayed by using a grid that has a maximum of four rows.
You need to identify which property to use for each requirement.
What should you identify? (To answer, drag the appropriate properties to the correct requirements. Each property may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
---

You are developing a Windows Presentation Foundation (WPF) application.
You are creating a screen named NewsList that contains a ListView control. NewsList must meet the following requirements:
NewsList must display data from an object named News.
Each item displayed in NewsList must use a data template named dataTemplate1.
NewsList must be displayed by using a grid that has a maximum of four rows.
You need to identify which property to use for each requirement.
What should you identify? (To answer, drag the appropriate properties to the correct requirements. Each property may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
---

Correct 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?
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: A
Vote an answer
You use Microsoft .NET Framework 4 to create an application. The application contains a
partially trusted client assembly and a server assembly.
You create a custom sandboxed application domain.
You need to ensure that the application can be executed in a partial-trust environment.
What should you do?
partially trusted client assembly and a server assembly.
You create a custom sandboxed application domain.
You need to ensure that the application can be executed in a partial-trust environment.
What should you do?
Correct Answer: A
Vote an answer