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

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

    You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.

    You plan to store the name of the file to a variable named SoundFilePath.

    You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.

    What should you do?

    A. Write the following code segment in the button onclick event. Dim player As New System.Media.SoundPlayer(SoundFilePath) player.Play()
    B. Write the following code segment in the button onclick event. Dim player As New MediaPlayer() player.Open(New URI(SoundFilePath), UriKind.Relative) player.Play()
    C. Use the following code segment from the PlaySound() Win32 API function and call the PlaySound function in the button onclick event. Public Shared Function PlaySound(SoundFilePath As [String], Module As Long, dwFlags As Long) As Long End Function
    D. Reference the Microsoft.DirectX Dynamic Link Libraries. Use the following code segment in the button onclick event. Dim song As Audio = New Song (SoundFilePath) song.CurrentPosition B song.Duration song.Play()

  • Question 262:

    You are developing a Windows Presentation Foundation (WPF) application. You add several TextBox controls within a StackPanel control. You next add several Image controls within a second StackPanel control.

    During testing, you discover that some of the textboxes do not appear in the proper layout.

    You need to quickly search for the textboxes and view their properties to identify which ones are incorrect.

    What should you do?

    A. Open the QuickWatch window and select the Text Visualizer.
    B. Open the Watch window and select the XML Visualizer.
    C. Open the Autos window and select the HTML Visualizer.
    D. Open the Locals window and select the WPF Tree Visualizer.

  • Question 263:

    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. TargetNullValue='Gender Not Specified'
    B. FallbackValue='Gender Not Specified'
    C. StringFormat='Gender Not Specified'
    D. Source='Gender Not Specified'

  • Question 264:

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

    The movement of a control within the application is animated.

    You need to ensure that the animated control is continually animated in one direction.

    What should you specify for the easing function of the animations?

    A. BackEase
    B. BounceEase
    C. ElasticEase
    D. SineEase

  • Question 265:

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

    You need to ensure that both Button controls display the "Save" text. Which code fragment should you insert at line 06?

  • Question 266:

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

    The majority of the buttons within the application are styled consistently. However, three buttons within the application must be styled differently.

    You need to ensure that the application can handle this styling requirement.

    What should you do?

    A. Create the styles in the main window resources. Omit the Key property for the default Button style and specify the Key property for the Button style and the three buttons.
    B. Create the styles in the application resources. Specify the TargetType property to be Button for the default style but not for the three buttons.
    C. Create the styles in the main window resources. Specify the TargetType property to be Button for the default style but not for the three buttons.
    D. Create the styles in the application resources. Omit the Key property for the default Button style and specify the Key property for the Button style and the three buttons.

  • Question 267:

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

    You are implementing the security features for a function that requires File 10. The callers of this function that are higher in the stack do not have permission to read the C:\temp directory.

    The function also accesses other resources that require permission.

    You need to ensure that the function has the proper permissions to read the C:\temp directory, and that all other resources in the function can still be accessed.

    Which attribute should you include with the function?

    A. [FileIOPermissionAttribute(SecurityAction.Demand, Read = "C:\\TEMP")]
    B. [FileIOPermissionAttribute(SecurityAction.Assert, Read = "C:\\TEMP")]
    C. [FileIOPermissionAttribute(SecurityAction.PermitOnly, Read = "C:\\TEMP")]
    D. [FileIOPermissionAttribute(SecurityAction.InheritanceDemand, Read = "C:\\TEMP")]

  • Question 268:

    You are developing an XBAP application for your company intranet. During several development iterations, you manually copy the working executable, application, and deployment manifest files to the test Web server. You create an HTML file that has a hyperlink to the deployment manifest that you use for testing. During the next iteration, you enhance the XBAP application by making changes to the application.

    When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes.

    You need to ensure that the changes you make are visible when you test the deployment from your machine.

    What should you do?

    A. Restart Microsoft Internet Information Services (IIS). Then click the Install hyperlink again.
    B. Open a Visual Studio command prompt and run mage -cc. Then click the Install hyperlink again.
    C. Delete the application, deployment, and executable files from the Web server. Then rebuild the XBAP solution and manually copy the same files from the project bin directory to the Web server and click the Install hyperlink again.
    D. Delete the application, deployment, and executable files from the Web server. Then recopy the same files from the project bin directory to the Web server, restart IIS, and click the Install hyperlink again.

  • Question 269:

    You are developing a Windows Presentation Foundation (WPF) application. You have the following style defined in the app.xaml file.

    You need to apply this style to a button named button1 in the application at run time.

    Which code segment should you use?

    A. button1.Style = TryCast(Me.FindName("styleItalic"),Style)
    B. button1.Style = TryCast(Me.FindName("btnItalic"), Style)
    C. button1.Style = TryCast(Me.FindResource("btnItalic"), Style)
    D. button1.Style = TryCast(Me.FindResource("styleItalic"), Style)

  • Question 270:

    You are developing a Windows Presentation Foundation (WPF) application. The application contains the following markup.

    You need to ensure that the Filter combo box is hidden when the expander is collapsed.

    What should you do?

    A. Add the following DataTrtgger element to the Expander control.
    B. Add the following DataTrigger element to the ComboBox control. DataTrigger Binding=" {Binding ElementName=Products, Path=isExpanded> "Value="False">
    C. Add the following DataTrigger element to the ComboBox control.
    D. Add the following DataTrigger element to the Expander control.

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.