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

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

    You add a new class named Customer to the application. You select the Customer class to create a new object data source.

    You add the following components to a Windows Form:

    A BindingSource component named customerBindingSource that is data-bound to the Customer object data source.

    A set of TextBox controls to display and edit the Customer object properties. Each TextBox control is data-bound to a property of the customerBindingSource component.

    An ErrorProvider component named errorProvider that validates the input values for each TextBox control.

    You need to ensure that the input data for each TextBox control is automatically validated by using the ErrorProvider component. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Implement the validation rules inside the Validating event handler of each TextBox control by throwing an exception when the value is invalid.
    B. Implement the validation rules inside the TextChanged event handler of each TextBox control by throwing an exception when the value is invalid.
    C. Implement the validation rules inside the setter of each property of the Customer class by throwing an exception when the value is invalid.
    D. Add the following code segment to the InitializeComponent method of the Windows Form. Me.errorProvider.DataSource = Me.customerBindingSource
    E. Add the following code segment to the InitializeComponent method of the Windows Form. Me.errorProvider.DataSource = Me.customerBindingSource.DataSource Me.errorProvider.DataMember = Me.customerBindingSource.DataMember

  • Question 132:

    You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit?

    A. FrameworkElement
    B. UIEIement
    C. UserControl
    D. Button

  • Question 133:

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

    You suspect that the data returned from the database is incorrect.

    You need to capture interactions to the database by using IntelliTrace.

    Which event type should you capture?

    A. ServiceModel
    B. DataBinding
    C. ADO.NET
    D. Tracing

  • Question 134:

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

    You need to ensure that users can view content in a book-reading format that displays two pages at a time. Which control should you use?

    A. FlowDocument
    B. FlowDocumentReader
    C. FlowDocumentPageviewer
    D. FlowDocumentScrollViewer

  • Question 135:

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

    You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList.

    The number of items of the data-bound collection is fixed. However, users can modify the properties of each of the Product objects in the collection.

    You need to ensure that changes made on the Product objects are automatically reflected in the ListBox control.

    What should you do?

    A. Implement the INotifyPropertyChanged interface in the Product class.
    B. Implement the INotifyCollectionChanged interface in the ProductList class.
    C. Set the Mode property of the Binding object of the ListBox control to TwoWay.
    D. Set the UpdateSourceTrigger property of the Binding object of the ListBox control to PropertyChanged.

  • Question 136:

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

    You are implementing a test strategy for the application.

    You need to ensure that the test class can repeat user input.

    From which base class should the test class inherit?

    A. AutomationElementIdentifier
    B. AutomationPeer
    C. Keyboard
    D. UICues

  • Question 137:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a form named frmMain that contains a button named btnSave.

    You create a ProgressBar control named saveProgress. Initially, saveProgress is not displayed on frmMain.

    When a user clicks btnSave, you have the following requirements:

    saveProgress is slightly visible after 0.2 seconds

    saveProgress is fully visible after 1 second

    You need to declare the corresponding storyboard.

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

    01 03

    Which code fragment should you insert at line 02 to complete the declaration?

  • Question 138:

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

    You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList.

    The number of items of the data-bound collection is fixed. However, users can modify the properties of each of the Product objects in the collection.

    You need to ensure that changes made on the Product objects are automatically reflected in the ListBox control.

    What should you do?

    A. Implement the INotifyPropertyChanged interface in the Product class.
    B. Implement the INotifyCollectionChanged interface in the ProductList class.
    C. Set the Mode property of the Binding object of the ListBox control to TwoWay.
    D. Set the UpdateSourceTrigger property of the Binding object of the ListBox control to PropertyChanged.

  • Question 139:

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

    The application's main window lists a series of controls horizontally until a control reaches the edge of the window. At that point, the series of controls continues on a new line.

    You need to ensure that this layout persists when the user changes the size of the window.

    What should you do?

    A. Place each control in a DockPanel control and set its Dock property to Left.
    B. Place the controls in a grid and define the rows and columns using star sizing.
    C. Place each control in a StackPanel control and set its Orientation property to Horizontal.
    D. Place each control in a WrapPanel control and set its Orientation property to Horizontal.

  • Question 140:

    You use Microsoft .NET Framework 4 to create a Windows Forms application. You need to allow the user interface to use the currently configured culture settings in the Control Panel.

    Which code segment should you use?

    A. Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture
    B. Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture
    C. Thread.CurrentThread.CurrentUICulcure = CultureInfo.InstalledUICulture
    D. Thread.CurrentThread.CurrentCulture = CultureInfo.InstalledUICulture

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.