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

    You are developing a Windows Presentation Foundation (WPF) application. Users can enter formatted percentages into text boxes. The markup is as follows.

    Percentage is a decimal property.

    You need to store the percentages as their decimal values, not their display values.

    Which code segment should you use?

    A. public object Convert (object value, Type targetType, object parameter, CultureInfo culture) { return ((decimal)value).ToString("P"); }
    B. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return (decimal.Parse(value.ToString()) / 100); }
    C. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return (decimal.Parse(parameter.ToString()) / 100); }
    D. public object Convert(object value. Type targetType, object parameter, CultureInfo culture) { return ((decimal)parameter).ToString(nPn); }

  • Question 222:

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

    An event triggers a workflow such that a parent control executes the event handlers before the child controls.

    You need to ensure that if a parent control's event handler encounters an error, the subsequent handlers are not called.

    What should you do?

    A. Use handlers for a tunneling routed event and mark the event as handled in the case of a problem.
    B. Use handlers for a tunneling routed event and mark the event as handled in the Finally portion of a Try-Catch-Finally code block.
    C. Use handlers for a bubbling routed event and mark the event as handled in the case of a problem.
    D. Use handlers for a bubbling routed event and set the Handled property of the RoutedEventArgs object to True in the Catch portion of a Try-Catch-Finally code block.

  • Question 223:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a formnamed 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 requirement: saveProgress is fully visible after l 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?

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

  • Question 224:

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

    You create a window that contains a Button control and a MenuItem control. Both controls are labeled "Add sugar." The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named

    AddSugarCommand.

    You write the following code segment.

    Private Sub CanAddSugar(sender As Object, e As CanExecuteRoutedEventArgs) ...

    End Sub

    You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled.

    What should you do?

    A. Create an event handler for the CanExecuteChanged event of the AddSugarCommand command. Call the CanAddSugar method from within the event handler.
    B. Inherit the AddSugarCommand from the RoutedUICommand class instead of the RoutedCommand class. Call the CanAddSugar method from within the constructor of the AddSugarCommand command.
    C. Add a CommandBinding object to the CommandBinding property of the MenuItem control. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.
    D. Add a CommandBinding object to the CommandBindings property of the window. Set the Command property of CommandBinding to the AddSugarCommand command. Set the CanExecute property of the CommandBinding object to the CanAddSugar method.

  • Question 225:

    You are developing a Windows Presentation Foundation (WPF) application page. The page uses extensive graphics controls and animation that require absolute positioning. You need to select a control to use as a container.

    Which control should you select?

    A. Canvas
    B. DockPanel
    C. StackPanel
    D. Grid

  • Question 226:

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

    You use the ClickOnce deployment methodology to distribute the application.

    You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application.

    Where should you store the application data?

    A. In isolated storage
    B. On the database server
    C. In the ClickOnce data directory
    D. in the App.config file of the application

  • Question 227:

    You are developing a Windows Presentation Foundation (WPF) application that will be deployed by using ClickOnce.

    You have a file named CONTOSOEULA.docx that is part of the project.

    CONTOSOEULA.docx must be deployed during the setup of the application.

    You discover that CONTOSOEULA.docx does not appear in the Application Files settings. You need to ensure that CONTOSOEULA.docx is included in the Application Files.

    Which Build Action should you use? (To answer, select the appropriate Build Action in the answer area.)

    Hot Area:

  • Question 228:

    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. Tracing
    D. ADO.NET

  • Question 229:

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

    A control periodically appears to alert the user of status changes within the application.

    You need to specify that each time the control appears, it fades out within half a second.

    Which markup segment should you add to the Storyboard element of the control?

  • Question 230:

    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 sealed class FormSettings : ApplicationSettingsBase 02 {

    04 public String Description

    05 {

    06 get {return (String)this["Description"]; }

    07 set {this["Description"] = value;}

    08 }

    09 }

    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?

    A. [UserScopedSettingO ] [DefaultSettingValue("Please enter your setting.")]
    B. [UserScopedSetting() ] [SettingsDescription("Description: Please enter your setting.")]
    C. [ApplicationScopedSetting() ] [DefaultSettingValue("Please enter your setting.")]
    D. [ApplicationScopedSetting() ] [SettingsDescription("Description: Please enter your setting.")]

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.