70-511 Exam Details

  • Exam Code
    :70-511
  • Exam Name
    :TS: Windows Applications Development with Microsoft .NET Framework 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :287 Q&As
  • Last Updated
    :Jan 26, 2022

Microsoft 70-511 Online Questions & Answers

  • Question 151:

    You are developing a Windows Presentation Foundation (WPF) application. You have a class named Orders, which contains OrderId and ShipOn properties. You place a control in the MainWindow.xaml file, as follows. (Line numbers are included for reference only.)

    When you run the application, the ComboBox control displays the class name for every row.

    You need to ensure that the ComboBox control displays the Orderld and ShipOn values in columns.

    Which markup segment should you add at line 03?

  • Question 152:

    You have a method named Method1. Method1 accepts a string parameter named param1.

    Method1 performs a complex operation on param1.

    You load an array of strings to a variable named array 1. The array contains 1,000 items. You need to ensure that other methods that call Method1 can use multiple processor cores when they execute.

    Which code segment should you use?

    A. Array1.AsParalle1().ForAll(Me.Method1)
    B. For Each item. As String In array1 Me.Method1(item) Next
    C. Array1.AsQueryable().AsParallel()
    D. Array1.AsQueryable.All (Me.Method1)

  • Question 153:

    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> 03

  • Question 154:

    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?

    A. XBAP
    B. Xcopy
    C. ClickOnce
    D. Setup Project

  • Question 155:

    You are developing a Windows Presentation Foundation (WPF) application.

    You need to display HTML content from a Web page on the WPF form.

    What should you do?

    A. Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
    B. Add a DocumentViewer control to the design surface. Then create a FixedDocument control.
    C. Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.
    D. Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.

  • Question 156:

    You develop a Windows Presentation Foundation (WPF) application. This application is used to output data trends to customer service representatives. A data trend analysis is performed in a function named UpdateTrendData. The trend

    analysis is a long-running process.

    The application contains the following code segment.

    Class MainWindow: Window {

    private void UpdateData(object arg)

    {

    double data = UpdateTrendData();

    ...

    }

    }

    UpdateData is currently invoked on the UI thread when the form is first displayed.

    You need to process the data in a manner that does not cause the UI to freeze.

    What should you do?

    A. Use ThreadPool.SetMaxThreads(2, 2) and invoke UpdateData.
    B. Use ThreadPool.QueueUserWorkItem to invoke UpdateData.
    C. Use this.Dispatcher.Beginlnvoke to invoke UpdateData passing in the priority of Normal.
    D. Use this.Dispatcher.BeginInvoke to invoke UpdateData passing in the priority of Background.

  • Question 157:

    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?

    A. {Binding Path=StringMember, Mode=Two way}
    B. {Binding Path=StringMember, NotifyOnSourceUpdated=True}
    C. {Binding Path=StringMember, NotifyOnTargetUpdated=True}
    D. {Binding Path=StringMember, UpdateSourceTrigger=PropertyChanged}

  • Question 158:

    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?

    A. Set the ItemSource for the Menu control to the ResourceKey value of the TreeView's ItemTemplate. Set the ResourceKey for the Menu control's ItemTemplate to the Key value for the DataTemplate.
    B. Set the ItemSource for the Menu control to the ItemSource value of the TreeView control. Set the ResourceKey for the Menu control's ItemTemplate to the ResourceKey value for the TreeView's ItemTemplate.
    C. Set the ItemSource for the Menu control to the ItemSource value of the TreeView control. Set the ResourceKey for the Menu control's ItemTemplate to the Key value for the DataTemplate.
    D. Set the ItemSource for the Menu control to the ResourceKey value of the TreeView's ItemTemplate. Set the ResourceKey for the Menu control's ItemTemplate to the ItemSource value for the TreeView.

  • Question 159:

    You are developing a Windows Presentation Foundation (WPF) application with the following class. (Line numbers are included for reference only

    The UI is not being updated when the Data property is set.

    You need to ensure that the DisplayData class correctly updates the UI when the Data property is set.

    What should you do?

    A. Insert the following code at line 14. NotifyPropertyChanged("Data");
    B. Insert the following code at line 16. NotifyPropertyChanged("Data");
    C. Insert the following code at line 14. NotifyPropertyChanged(value);
    D. Insert the following line at line 16. NotifyPropertyChanged(value);

  • Question 160:

    You are developing a Windows Presentation Foundation (WPF) application. An element binding consistently throws errors because the data retrieval is slow.

    You need to ensure that the PresentationTraceSource binding is configured to debug the source of these errors.

    Which two actions should you perform? (Each correct answer presents part of the solution. Choose two).

    A. Add the following markup segment to the window definition. xmlns:diagnostics= "clr-namespace:System.Diagnostics;assembly=WindowsBase"
    B. Add the following markup segment to the window definition. xmlns: diagnostics= "clr-namespace:Microsoft.Build.Debugging; assembly=Microsoft.Build"
    C. Add the following markup segment to the problem element. "diagnostics: PresentationTraceSources . TraceLevel=High"
    D. Add the following markup segment to the problem element, "diagnostics:ConsoleTraceListener"

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-511 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.