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

    You have a Windows Presentation Foundation (WPF) application named App1.

    You plan to deploy App1 by using ClickOnce.

    You need to ensure that App1 meets the following security requirements:

    The assembly that contains App1 must be visible from a COM component.

    Each time Appl runs, an End-User License Agreement (EULA) must appear.

    App1 must be able to open files on local drives if the application is deployed from a file server.

    App1 must be prevented from opening files on local drives if the application is deployed from a Web server.

    Which file should you modify for each requirement? (To answer, drag the appropriate files to the correct requirements. Each file 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 232:

    You are developing a Windows Presentation Foundation (WPF) application. A custom control has a dependency property that is bound to a property of type Intl6 on a business layer object.

    You need to ensure that the bound value always falls within the range of an Int16 value, even if the value that the user enters does not.

    What should you do?

    A. Within the Dependency property's metadata, specify a callback for validation.
    B. Register the property type of the Dependency property as Int16.
    C. Specify code in the common language runtime (CLR) wrapper to adjust the value if it falls outside the range of an Int16 value.
    D. Within the Dependency property's metadata, specify a callback for coercion.

  • Question 233:

    You are developing a Windows Presentation Foundation (WPF) application for managing student information. You place a Button control named btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml file. You create a Student class with two properties: FirstName and LastName. You create the following code segment in the constructor of the main window.

    The DataGrid control displays the list of students unsorted.

    You need to ensure that the list of students is sorted by last name.

    Which code segment should you add to the click event handler of the Button control?

    A. IEnumerable sortedStudents = Students.OrderBy(s => s.LastName).ToList(); dgStudents.ItemsSource = sortedStudents;
    B. Students.Sort (); dgStudents.ItemsSource = Students;
    C. Students.Reverse ( ); dgStudents.ItemsSource = Students;
    D. IEnumerable sortedStudents = Students.OrderBy(s => s.LastName); dgStudents.ItemsSource = sortedStudents;

  • Question 234:

    You use Microsoft .NET Framework 4 to create a Windows Forms application. You have a form named Form1 that has a TableLayoutPanel control named tableLayoutPanel1.tableLayoutPanel1 has two rows and two columns. You need to create a method that meets the following requirements:

    Accepts a string parameter

    Dynamically creates a Label control that appears in the first column

    Dynamically creates a TextBox control that appears directly below the Label control Which code should you use?

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

  • Question 235:

    You are developing a Windows Presentation Foundation (WPF) application. The WPF window contains a ListBox control that displays a list of customer names and genders. You add the following markup segment to the application. (Line numbers are included for reference only.)

    The WPF window renders the list of customers with empty Gender values.

    You need to convert the null values for Gender to the following string: "Gender Not Specified".

    Which binding attribute should you add at line 08?

    A. FallbackValue='Gender Not Specified'
    B. StringFonnat='Gender Not Specified'
    C. TargetNullValue='Gender Not Specified'
    D. Source='Gender Not Specified'

  • Question 236:

    You have the following code in a Windows Presentation Foundation (WPF) application:

    You need to animate the ellipse.

    Which code segment should you use to declare the animation at line 12?

    A. Dim a As New DoubleAnimation ()
    B. Dim a As New ColorAnimation ()
    C. Dim a As AnimationTimeline
    D. Dim a As New DiscreteVectorKeyFrame()

  • Question 237:

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

    The application consists of:

    A window that contains controls organized into groups.

    Groups that are ordered vertically and that have individual headings.

    Controls within the groups that are ordered horizontally.

    Groups and controls that will be added dynamically at run time.

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

    The window must be resizable without affecting the layout of the controls.

    The controls within the groups must be laid out such that there is a minimum amount of spacing between groups.

    What should you do?

    A. Use a Grid control with its VerticalAlignment property set to Stretch to organize the groups and specify the row definitions. Use Grid controls to organize the controls and specify the column definitions.
    B. Use a WrapPanel control to organize the groups with its Orientation property set to Vertical. Use WrapPanel controls to organize the controls with their Orientation property set to Horizontal.
    C. Use a ListBox control to organize the groups. Use Canvas controls to organize the controls.
    D. use a StackPanel control to organize the groups with its Orientation property set to Vertical. Use StackPanel controls to organize the controls with their Orientation property set to Horizontal.

  • Question 238:

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

    You want to localize the application to use the German locale settings.

    You need to allow the ResourceManager class to retrieve a neutral German locale version of the text to be displayed in the user interface (UI).

    Which file should you add to the project?

    A. Resources.de.xml
    B. Resources.de-DE.xml
    C. Resources.de.resx
    D. Resources.de-DE.resx

  • Question 239:

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

    Your environment includes several WPF applications. The applications use the same logo and style configuration as part of a corporate standard.

    You need to ensure that the existing applications can be updated to use the same logo and style settings without recompiling.

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

    Choose two.)

    A. Mark the resource as an embedded resource in each application.
    B. Create a resource in an XAML file that contains the logo and style configurations.
    C. Create a resource in a custom control that contains the logo and style configurations.
    D. Add the resource as a Resource Dictionary in the Merged Dictionaries collection of each application.
    E. Use Resource Manager to read the content of the resource. Manually assign the style configurations included in the resource file to the appropriate control in each application.

  • Question 240:

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

    You have a form named Forml that has a TableLayoutPanel control named tableLayoutPanel1.

    tableLayoutPanel1 has two rows and two columns.

    You need to create a method that meets the following requirements:

    Accepts a string parameter

    Dynamically creates a Label control that appears in the first column

    Dynamically creates a TextBox control that appears directly below the Label control Which code should you use?

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

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.