Exam 70-511 : Windows Applications Development with Microsoft .NET Framework 4 Part – 16

Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a custom control that is used to display customer information. You discover that the custom control is not rendering correctly. You need to identify the WPF element that is causing the issue. You want to achieve this goal by using the minimum amount of administrative effort. What should you do?

    • Start the application in debug mode.
    • Place a breakpoint at the main entry point of the application.
    • Use the debugger to step through the application code.
    • Start the application in debug mode.
    • Place a breakpoint at the main entry point of the application.
    • Use theWPF Tree Visualizer tool.
    • Enable IntelliTrace and configure Visual Studio to generate a trace log.
    • Start the application in debug mode.
    • Enable IntelliTrace and configure Visual Studio to generate a trace log.
    • Start the application by doubleclicking the executable file (.exe).

Correct Answer: 2


Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses data-bound controls. You discover that when the application is executed by users, one of the controls is not displayed properly. You need to view the property values assigned to the controls. What should you do?

  1. Use IntelliTrace.
  2. Use PresentationTraceSource.
  3. Run the application in debug mode with Visual Studio 2010. Use the Auto window while you step through the application code.
  4. Run the application in debug mode with Visual Studio 2010. Use the WPF Visualizer while you step through the application code.

Correct Answer: 4


Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment to bind a customer object to several controls in a window.

When the application executes, you receive the following error message:

“System.Windows.Data Error: 35 : BindingExpression path error: ‘CustomerName’ property not found on ‘object’ ”Customer’ (HashCode=22613453)’. BindingExpression:Path=CustomerName;
DataItem=’Customer’ (HashCode=22613453);
target element is ‘TextBox’ (Name=’textBox1′);
target property is ‘Text’ (type ‘String’)

You need to identify the source of the error. What should you do?

  1. Use a Trace object.
  2. Use a Debug object.
  3. Use the WPF Visualizer.
  4. Use a PresentationTraceSources object.

Correct Answer: 4


Question: You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to use a PresentationTraceSources object when the application is executed by users. When the application is executed in a test environment, all debug information is successfully captured. You need to be able to capture debug information when the application is deployed. What should you do?

    • Enable WPF tracing in the registry.
    • Restart the application.
    • Enable tracing by modifying local Group Policy.
    • Restart the application.
    • Open the XML configuration file for your application on the user’s computer.
    • Set tracing to a verbose level.
    • Restart the application.
    • Open the XML configuration file for your application on the user’s computer.
    • Add a trace listener.
    • Restart the application.

Correct Answer: 1


Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application requires frequent updates. You want to use the ClickOnce technology to distribute the application to Internet users. You need to ensure that the application is automatically updated without requiring user intervention. You also need to ensure that the users execute the most recent version of the application. What should you do when you publish the application?

  1. Use Install the application from a file share. Select the Application is available online and offline option.
  2. Use Install the application from CD-ROM or a DVD-ROM. Select the Application will not check for updates option.
  3. Use Install the application from a Web site. Select the Application is available online only option.
  4. Use Install the application from a Web site. Select the Application is available online and offline option.

Correct Answer: 3

Tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.