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

Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the background worker executes a method named DoCalculations asynchronously. You need to implement a progress bar on the user interface (UI) that informs the user of the progress of DoCalculations. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

  1. Modify the Value property of the progress bar in DoCalculations.
  2. Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker.
  3. Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker.
  4. Call the ReportProgress method of the background worker in DoCalculations.
  5. Call the ReportProgress method of the background worker in the DoWork event handler of the background worker.

Correct Answer: 2 & 4


Question: 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?

  1. Resources.de.xml
  2. Resources.de-DE .xml
  3. Resources.de.resx
  4. Resources.de-DE .resx

Correct Answer: 3


Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality. You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form. Which enumeration member should you use?

  1. DragAction.Cancel
  2. DragAction.Drop
  3. DragDropEffects.None
  4. DragDropEffects.All

Correct Answer: 1


Question: You use Microsoft .NET Framework 4 to create a Windows Forms application. The application includes a RichTextBox control and a ListBox control. The ListBox control is populated with a list of valid file names. The application allows users to drag a ListBox item to the RichTextBox control. You need to provide a visual indication that a file that is dragged can be dropped on the RichTextBox control. What should you do?

  1. Use a DoubleAnimation class.
  2. Use a Storyboard animation class.
  3. Use the DragDropEffects enumeration.
  4. Use the DragAction enumeration.

Correct Answer: 3


Question: You use Microsoft .NET Framework 4 to create a Windows application that can execute on client computers that run Windows Vista. You are creating a User Account Control (UAC) application manifest for the application. You need to ensure that users who are members of the local Administrators group do not receive a UAC prompt when the application executes. Which code fragment should you use?

  1. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <v3:security>
    <v3:requestedPrivileges>
    <v3:requestedExecutionLevel level="asInvoker" uiAccess="true" />
    </v3:requestedPrivileges>
    </v3:security>
    </v3:trustInfo>
    </assembly>
  2. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <v3:security> <v3:requestedPrivileges>
    <v3:requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
    </v3:requestedPrivileges>
    </v3:security>
    </v3:trustInfo> </assembly>
  3. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <v3:security>
    <v3:requestedPrivileges>
    <v3:requestedExecutionLevel level="asInvoker" uiAccess="false" />
    </v3:requestedPrivileges>
    </v3:security>
    </v3:trustInfo>
    </assembly>
  4. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <v3:security>
    <v3:requestedPrivileges>
    <v3:requestedExecutionLevel level="highestAvailable" uiAccess="true" />
    </v3:requestedPrivileges>
    </v3:security> </v3:trustInfo>
    </assembly>

Correct Answer: 4

Tagged . Bookmark the permalink.

Leave a Reply