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

    You use Microsoft .NET Framework 4 to create a Windows Forms application.

    The application has a reference to a Windows Presentation Foundation (WPF) class library named Library1. Library1 contains a WPF user control named UserControl1. You add the following code to the application:

    You need to ensure that you can add the instance of UserControl1 to a control named host in Form1. Which code segment should you insert at line 09?

    A. WindowsFormsHost host = new WindowsFormsHost ();
    B. ContainerControl host = new ContainerControl();
    C. Panel host = new Panel();
    D. ElementHost host = new ElementHost();

  • Question 122:

    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" / > < /Grid >
    B. < Window.ContextMenu > < ContextMenu > < MenuItem Header="Color Scheme" DataContext="{StaticResource colorschemes}" ItemsSource="{Binding Path ItemTemplate="{StaticRes ource StringTemplate}" /> < MenuItem Header="Font" DataContext="{StaticResource fonts}" ItemsSource=,{ Binding Path=.>" ItemTemplate="{StaticResource StringTemplate}" /> < /ContextMenu > < /Window.ContextMenu > < Grid > < TextBlock TJidth="200" Height= "100" Background="LightBlue" / >
    C. < 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 Width="200" Height="100" Background="LightBlue" > < 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 123:

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

    You discover that when the application runs, a user control is not rendered correctly.

    You need to find out the user interface (UI) element of the window that is causing the rendering problem.

    What should you do?

    A. Use the Local Window.
    B. Use the WPF Visualizer.
    C. Generate a trace log by using IntelliTrace.
    D. Set a breakpoint at the control. Run the application.

  • Question 124:

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

    The application contains a window named Window1. Window1 contains several controls of the Label, TextBox, and Button types. You create the following style in a Window.Resources element:

    You need to define a style named Style2 that meets the following requirements:

    Has a blue background Uses the same settings as Style1 Can only be applied to the TextBox controls

    How should you complete the style? (To answer, drag the appropriate elements to the correct locations. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

    Select and Place:

  • Question 125:

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

    This application will be deployed to 20 countries. However, it will only be localized to some of those countries' regional dialects.

    The localization will be performed by using resource files. However, no culture will be specified in the project file with the UlCulture tags.

    You must ensure that the application defaults to English for those regions that are not localized.

    What should you do?

    A. Add the following code segment to the AssemblyInfo file. [assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallfcaclcLocation.Satellite) ]
    B. Add the following code segment to the Application constructor. Thread.CurrentThread.CurrentUICulture= new CultureInfo("en-US");
    C. Add the following code segment to the AssemblyInfo file. [assembly: NeutralResourcesLanguage("en-OS", DltimateResourceFallbackLocation.MainAssembly) ]
    D. Add the following code segment to the Application constructor. Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

  • Question 126:

    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?

    A. {Binding ElementName= IbxItems, Source=SelectedItem, Path=DisplayValue}
    B. {Binding Source=lbxItems, ElementName=SelectedItem, Path=DisplayValue}
    C. {Binding ElementName=IbxItems, Path=SelectedItem.DisplayValue}
    D. {Binding Source=lbxItems, Path=SelectedItem.DisplayValue}

  • Question 127:

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

    Displays a menu that is specific to the control selected by the user.

    Displays the menu next to the control.

    Which control should you use?

    A. Menu
    B. Popup
    C. ListBox
    D. ContextMenu

  • Question 128:

    You use Microsoft .NET Framework 4 to create a Windows Forms application. You write the following code segment. (Line numbers are included for reference only.)

    01 NotInheritable Class FormSettings 02 Inherits ApplicationSettingsBase 03 04 Public Property Description() As [String] 05 Get 06 Return DirectCast(He("Description"), [String]) 07 End Get 08 Set 09 Me("Description") -value 10 End Set 11 End Property 12 End Class

    You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting."

    Which code segment should you insert at line 03?

  • Question 129:

    You are upgrading the security features of a Microsoft .NET 3.5 application to .NET 4. You need to identify the .NET 3.5 security application programming interface (API) calls that implicitly use code access security (CAS) policies so that you can upgrade the calls.

    What should you do?

    A. Add a property trigger to the Triggers collection of ManageOrders, Configure the property trigger to be based on theIsPressed property of showOtherSide.
    B. Add an event trigger to the Triggers collection of ManageOrders. Configure the event trigger to be based on the Click event ofshowOtherSide.
    C. call the BeginAnimation method of ManageOrders. Pass FlipSides as a parameter of the BeginAnimation method.
    D. call the BeginAnimation method of showOtherSide. Pass FlipSides as a parameter of the BeginAnimation method.

  • Question 130:

    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?

    A. RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("Item"))
    B. RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("Me()"))
    C. RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("Me"))
    D. RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("Item()"))

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.