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

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

    The application contains a DockPanel named DockPanel1. DockPanel1 contains a ListBox named List1 and a Button named Button1.

    You discover that DockPanel1 does not appear in the application.

    You set a breakpoint, and then you run the code in debug mode.

    You need to identify which property prevents DockPanel1 from appearing in the application. Which property should you identify? (To answer, select the appropriate property in the answer area.)

    Hot Area:

  • Question 202:

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

    You plan to deploy the WPF application by using ClickOnce. The application will be associated to files that have an extension of .abc.

    You need to ensure that when a user opens the application by double-clicking an .abc file, a TextBlock named txtBlock1 displays the path of the file.

    Which code should you use?

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

  • Question 203:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to configure the application to meet the following requirements:

    When a TextBox control has focus and no characters, the background color of the TextBox must be Blue. When the TextBox control loses focus, the background of the TextBox must revert to the original value.

    What should you do? (Develop the solution by selecting and ordering the required code snippets. You may not need all of the code snippets.)

    Select and Place:

  • Question 204:

    You are developing a Windows Presentation Foundation (WPF) application. You are writing data templates for a calendar.

    You must use the Weekend template for weekends and the Weekday template for weekdays. The Window markup is as follows. (Line numbers are included for reference only.)

    You need to ensure that the Weekend and Weekday templates are applied correctly to the ListBox control. Which markup segment should you insert at line 11?

  • Question 205:

    You are developing a Windows Presentation Foundation (WPF) application. The window has the following markup. (Line numbers are included for reference only.)

    You need to ensure that all ListBox controls have a border that matches the background color of the ListBox template.

    Which markup segment should you insert at line 15?

  • Question 206:

    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 ItemSource value for the TreeView.
    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 Key value for the DataTemplate.
    C. 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.
    D. Set the Item Source 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.

  • Question 207:

    You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4. You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer.

    What should you do?

    A. Use a custom action.
    B. Set the MinVersion property to .NET Framework 4.
    C. Set the Version property of Windows Installer to .NET Framework 4.
    D. Set the Version property of the Launch Condition to .NET Framework 4.

  • Question 208:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality.

    You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form

    Which enumeration member should you use?

    A. DragAction.Cancel
    B. DragAction.Drop
    C. DragDropEffects.None
    D. DragDropEffects.All

  • Question 209:

    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?

    A. {Binding Path=Data/Name, FallbackValue='N/A' }
    B. {Binding Path=Data.Name, FallbackValue='N/A' }
    C. {Binding Path=Data/Name, TargetNullValue='N/A' }
    D. {Binding Path=Data.Name, TargetNullValue='N/A' }

  • Question 210:

    You use Microsoft .NET Framework 4 to create a Windows Forms application. You have a dataset as shown in the following exhibit.

    You plan to add a DataGridView to display the dataset.

    You need to ensure that the DataGridView meets the following requirements:

    1.

    Shows Order Details for the selected order.

    2.

    Shows only Order Details for items that have UnitPrice greater than 20

    3.

    Sorts Products by ProductName

    Which code segment should you use?

    A. ordersBindingSource.DataSource = producxsBindingSource; ordersBindingSource.DataMember = "FK_Order_Details_Products"; productsBindingSource.Filter = "UnitPrice > 20"; productsBindingSource.Sort = ProductName";
    B. productsDataGridView.DataSource = ordersBindingSource; productsBindingSource.Filter = "UnitPrice > 20"; productsBindingSource.Sort = "ProductName";
    C. order DetailsBindingSource.DataSource = ordersBindingSource; order_DetailsBindingSource.DataMember = "FK_Order_Details_Orders". order_DetailsBindingSource .Filter = "UnitPrice > 20"; productsBindingSource.Sort "ProductName";
    D. order_DetailsDataGridViev.DataSource = ordersBindingSource; order_DetailsBindingSource.Filter = "UnitPrice > 20"; productsBindingSource.Sort "ProductName";

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.