Microsoft TS: Windows Applications Development with Microsoft .NET Framework 4 - 070-511 FREE EXAM DUMPS QUESTIONS & ANSWERS

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. 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: D Vote an answer
You develop a Windows Presentation Foundation (WPF) application. This application is used to output data trends to customer service representatives.
You use threading to keep the UI responsive. You have a function named UpdateUI that updates all of the UI components.
You use the following code to update the _Data variable. (Line numbers included for reference only.)

You need to update the user interface without knowing if you are on the UI thread.
Which code segment should you insert at line 06?
Correct Answer: D Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
The application has an Image control.
You need to ensure that a portion of the image displays in a circle in the control.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: A,C Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
You build a dictionary that implements INotifyPropertyChanged. You want to use an indexer to bind to the UI. The relevantimplementation of the dictionary is as follows. (Line numbers are included for reference only.)

You need to ensure that the PropertyChanged event is triggered so that the UI is updated if you modify the collection using theindexer.
Which code should you insert at line 17?
Correct Answer: B Vote an answer
You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List<T> named Leads, where T is a class named Lead. The Lead class contains the properties Title and Revenue.
You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemSource property of dgQualifiedLeads to Leads as follows. (Line numbers are included for reference only.)

You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue of more than $1,000.
What should you do?
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.
The application contains a ListBox control named IbxItems that is data-bound to a
collection of objects. Each object has a DisplayValue property.
You add a Button control to the application.
You need to ensure that the Content property of the Button control is data-bound to the
DisplayValue property of the selected item of IbxItems.
Which binding expression should you use?
Correct Answer: A Vote an answer
You are developing a Windows Presentation Foundation (WPF) application.
The application contains the following code in the code-behind file for an application window. (Line numbers are included for reference only.)
01 Dim stack As StackPanel = New StackPanel() 02 Content = stack 03 For i As Integer = 0 To 9 04 Dim btn As Button = New Button () 05 btn.Name = Convert.ToChar (Asc("A") + i) .ToString () 06 btn.Content - btn.Name "says" "Click me1" 07 08 Next
You need to ensure that all of the Button controls that are defined in this code segment appear in the application window.
Which code segment should you insert at line 07?
Correct Answer: C Vote an answer
You are developing a Windows Presentation Foundation (WPF) application that plays video clips.
The markup is as follows.

You need to ensure that the current running time of the video is automatically updated and displayed in CurrentRunTime.
What should you do?
Correct Answer: D Vote an 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 use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a custom command as a resource. The key of the command is saveCommand.
You write the following code fragment. (Line numbers are included for reference only.)
01 < Canvas>
02
03 <Button>
04
05 </Bucton>
06 </Canvas>
You need to ensure that saveCommand is executed when the user clicks the Button control.
What should you do?
Correct Answer: D Vote an answer
You are developing a Windows Presentation Foundation (WPF) application. The application contains a converter named DateOutputConverter that formats dates. The window is defined as follows. (Line numbers are included for reference only.)

The window must display the OrderDate value found in shippedOrder. The text box must display the OrderDate formatted by the DateOutputConverter.
You need to ensure that the OrderDate is displayed and formatted correctly.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: A,B Vote an answer
You are developing a Windows Presentation Foundation (WPF) application that displays pricing and inventory Information.
A list box's ItemsSource property has decimal and string types. Decimals represent price and strings represent messages such as "Discontinued"
The following markup is defined as follows. (Line numbers are included for reference only.)

You need to ensure that data templates are used to format the strings without changes and the decimals as currency.
Which markup segment should you insert at line 05?
Correct Answer: D Vote an answer
0
0
0
10