Microsoft 070-511 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: 070-511
  • Exam Name/Title: TS: Windows Applications Development with Microsoft .NET Framework 4
  • Certification Provider: Microsoft
  • Corresponding Certification: MCTS
  • Exam Questions: 288
  • Updated On: Jun 13, 2026
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You want to localize the application to use the German locale settings.
You need to allow the ResourceManager class to retrieve a neutral German locale version of the text to be displayed in the user interface (UI).
Which file should you add to the project?
Correct Answer: B Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
You are planning the deployment strategy for the application.
You need to write specific information to the registry during deployment for each user.
Which deployment strategy should you use?
Correct Answer: B Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a property named ServiceContext to a control.
You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class.
What should you do?
Correct Answer: B Vote an answer
You are developing a Windows Presentation Foundation (WPF) application. You use the following markup segment to add a Button control to the design surface of the MainWindow.xaml file.

You add the following code segment to the code-behind file for HainWindow.

The application will be deployed in an environment that requires alternate key mappings.
You need to remove the CTRL+ C input gesture and replace it with the ALT+ C input gesture.
What should you do?
Correct Answer: A Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
The application uses drag-and-drop functionality.
You need to ensure that code is executed in the code-behind file when the dragged item is released onto the target element.
Which enumeration should you use?
Correct Answer: B Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code segment. (Line numbers are included for reference only.)

You add the following code fragment within a WPF window control.

The TextBox control is data-bound to an instance of the Contact class.
You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL. You also need to ensure that the TextBox control validates the input data.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two).
Correct Answer: B,D Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
An event triggers a workflow such that a parent control executes the event handlers before the child controls.
You need to ensure that if a parent control's event handler encounters an error, the subsequent handlers are not called.
What should you do?
Correct Answer: A Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains the following code fragment.
<StackPanel>
<TextBlock Style="{StaticResource MyStyle)">Hello World</TextBlock>
<Button Style="{StaticResource MyStyle} ">Ok</Button></StackPanel>
You need to define a style that applies the following properties to the text in the StackPanel object:
- FontSize = 32
- FontWeight = Bold
Which code fragment should you use?
Correct Answer: A Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
The application contains stylized body text and heading test. The heading text is a slight variation of the body text.
You need to ensure that if the body text changes, the heading text automatically inherits those changes.
What should you do?
Correct Answer: D Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
The MainWindow.xaml file contains a TreeView control with a DataTemplate that displays three levels in the following hierarchical order:
1. Household
a.Parents
i.Children
You need to ensure that a Menu control is configured to display the same hierarchy.
What should you do?
Correct Answer: D Vote an answer
You are upgrading the security features of a Microsoft .NET 3.5 application to .NET 4. You need to identify the -NET 3.5 security application programming interface (API) calls that implicitly use code access security (CAS) policies so that you can upgrade the calls.
What should you do?
Correct Answer: A Vote an answer
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a
Windows Presentation Foundation (WPF) application.
You create a WPF window in the application.
You add the following code segment to the application.

The DataContext property of the window is set to an instance of the ViewModel class. The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects.
You add a TextBox control to the Window.
You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object. You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A.
Which binding expression should you use?
Correct Answer: C Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP).
When the user clicks a button, the background worker executes a method named DoCalculations asynchronously.
You need to implement a progress bar on the user interface (UI) that Informs the user of the progress of DoCalculations.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: B,D Vote an answer
0
0
0
10