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 91:

    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"

  • Question 92:

    You are deploying a ClickOnce application manually in a test environment.

    You need to ensure that the deployment is signed with a self-signed test X.509 certificate.

    Which tool should you use to create the certificate?

    A. makecert.exe
    B. cert2spc.exe
    C. Ic.exe
    D. mage.exe

  • Question 93:

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

    A user control responds to a click event. The click event handler sets the Handled property to True. You need to ensure that a parent control responds to the event after the user control's handler executes.

    What should you do?

    A. Add a bubbling routed event handler to the parent control.
    B. Programmatically add an event handler to the parent control and set the HandledEventsToo property to True.
    C. Add a tunneling routed event handler to the parent control.
    D. Programmatically add an event handler to the parent control and set the HandledEventsToo property to False.

  • Question 94:

    You are developing a Windows Presentation Foundation (WPF) application that contains a custom Button control.

    The custom Button control can be set as active by setting an IsActive property to True.

    You need to ensure that the IsActive property can be bound to a business object.

    What should you do on the custom Button control?

    A. Implement IsActive as a Microsoft .NET property.
    B. Implement IsActive as a Dependency property.
    C. Implement INotifyPropertyChanged.
    D. Implement IQueryable.

  • Question 95:

    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 96:

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

    The application configuration file is maintained in source control and must not be modified. You need to ensure that developers can override individual settings.

    Which XML segment should you use in the application configuration file?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 97:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.

    You plan to allow users to customize the background colors, foreground colors, and font style of the application. You also plan to add a TextBlock control to the application.

    You write the following code fragment. (Line numbers are included for reference only.)

    You need to ensure that the ContextMenu control is associated with the TextBlock control. You also need to ensure that the properties that can be customized are shown hierarchically.

    Which code fragment should you insert at line 15?

    A. < Grid > < Menu > < MenuItem Header="Color Scheme" DataContext="{StaticResource colorschemes}" ItemsSource="{Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" / > < MenuItem Header="Font" DataContext="{StaticResource fonts}" ItemsSource="{Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" /> < /Menu> < TextBlock width-"200" Height-"100" Background-"LightBlue" / >
    B. < Window.ContextMenu > < ContextMenu > < MenuItem Header="Color Scheme" DataContext="{StaticResource colorschemes)" ItemsSource="{ Binding Path ItemTemplate="{StaticRes ource StringTemplate}" /> < MenuItern Header="Font" DataContext="{ StaticResource fonts!" ItemsSource=,,{ Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" /> < /ContextMenu > < /Window.ContextMenu >
    C. < Grid > < TextBlock TJidth="200" Height= "100" Background="LightBlue" / > < Window. ContextMenu > < ContextMenu> < TextBlock Width="200" Height="100" Background="LightBlue" / > < MenuItem Header="Color Scheme" DataContext="{StaticResource colorschemes}" ItemsSource="{Binding Path*.}" ItemTemplate="{StaticResource ColorSchemeTemplate}" /> < MenuItem Header="Font" DataContext="{StaticResource fonts}" ItemsSource="{Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" >< /MenuItem > < /ContextMenu >
    D. < Grid > < TextBlock.ContextMenu > < ContextMenu > < MenuItem Header="Color Scheme" DataContext="{StaticResource colorschemes)" ItemsSource="{Binding Path=.) ItemTemplate="{StaticResource ColorSchemeTemplate}" / > < MenuItem Header="Font" DataContext="{StaticResource fonts)" ItemsSource="{Binding Path=.}" ItemTemplate="{StaticResource StringTemplate}" >< /MenuItem > < /TextBlock.ContextMenu > < /TextBlock >

  • Question 98:

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

    The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library that contains the code to validate license keys.

    You need to ensure that the user enters a valid license key during installation of the software.

    Which deployment should reference the class library?

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

  • Question 99:

    You are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in a file named Themes.dll. You have the following markup segment.

    Height="100" Width="200">

    BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file.

    You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.

    What should you do?

    A. Add the following line to Window.Resources.
    B. Add the following line to Window.Resources.
    C. Add the following line to Border.Resources.
    D. Add the following line to Border.Resources.

  • Question 100:

    You are developing a Windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTip attribute of TextBlock displays the full book titles.

    You create a converter named TrimTitleConverter to shorten the book titles to three words in the Text attribute of the TextBox. You add the converter to the Resources section of the MainWindow.xaml file as follows. (Line numbers are

    included for reference only.)

    You need to ensure that the shortened book titles appear only in the Text attribute of TextBlock.

    Which markup segment should you use to replace lines 06 through 09?

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.