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: May 26, 2026
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application displays a list of books.
You write the following code fragment. (Line numbers are included for reference only.)

You need to ensure that book titles that are out of stock appear in red.
Which code fragment should you insert at line 12?
Correct Answer: A Vote an answer
You are migrating a Windows Forms application to a Windows Presentation Foundation (WPF) application.
You need to create a window to display controls. The controls must be positioned by using fixed coordinates.
Which control should you use in the WPF application?
Correct Answer: B Vote an answer
You use Microsoft .NET Framework 4 to create a Windows application. You use ClickOnce technology to install the application on computers that run Windows 7 with User Access Control (UAC) enabled.
The application requires access to environment variables on each computer.
You need to ensure that users who do not have administrative permissions can install the application.
Which deployment method should you use?
Correct Answer: B Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format.
You need to ensure that you can reuse the controls.
What should you create?
Correct Answer: C 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: 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.)

You need to ensure that both Button controls display the "Save" text.
Which code fragment should you insert at line 06?
Correct Answer: C Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object contains the Name and PictureFilePath properties.
You add a ListBox control to the application.
You need to ensure that the pictures are displayed in the ListBox control.
Which code fragment should you use?
Correct Answer: B Vote an answer
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a
Windows Presentation Foundation (WPF) application.
You write the following code fragment.
< TextBox Text="{Binding Path=StringMember} " / >
You need to ensure that the StringMember property of the data-bound object is updated
immediately when the user types in the TextBox control.
Which binding expression should you use?
Correct Answer: A Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object contains the Name and PictureFilePath properties.
You add a ListBox control to the application.
You need to ensure that the pictures are displayed in the ListBox control.
Which code fragment should you use?
Correct Answer: A Vote an answer
DRAG DROP
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains a window that has two buttons named Copy and Paste.
You need to ensure that the buttons have a black background color and white foreground color.
What should you do? (Develop the solution by selecting and ordering the required code snippets. You may not need all of the code snippets.)
Correct Answer:
You are developing a Windows Presentation Foundation (WPF) application.
You pull employee information from an XML file named EmployeeData.xml. The XML file is as follows.

You need to display all the employee information from the XML file in EmployeeList. Which markup segment should you use?
Correct Answer: C Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
A custom control has a dependency property that is bound to a property of type Int16 on a business layer object.
You need to ensure that the bound value always falls within the range of an Int16 value, even if the value that the user enters does not.
What should you do?
Correct Answer: D Vote an answer
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application contains a window as shown in the following exhibit.

You need to define a DockPanel control that fits the window.
Which code fragment should you use?
Correct Answer: B Vote an answer
0
0
0
10