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

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

  1. In isolated storage.
  2. On the database server.
  3. In the ClickOnce data directory.
  4. In the App.config file of the application.

Correct Answer: 1


Question: You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe. You use Microsoft Windows Installer to package the application. You create an icon file named Application.ico. You need to associate Application.ico with MyApp.exe when it is deployed. What should you do?

  1. Use the File Types Editor tool.
  2. Rename the icon file to MyApp.exe.ico.
  3. Set the AddRemoveProgramsIcon property to Application.ico.
  4. Use the File System Editor tool to set the Icon property to Application.ico.

Correct Answer: 4


Question: You create a Microsoft Windows Installer file for a Windows Presentation Foundation (WPF) application that requires Microsoft .NET Framework 4. You need to ensure that the installation starts only if .NET Framework 4 is already installed on the computer. What should you do?

  1. Use a custom action.
  2. Set the MinVersion property to .NET Framework 4.
  3. Set the Version property of Windows Installer to .NET Framework 4.
  4. Set the Version property of the Launch Condition to .NET Framework 4.

Correct Answer: 4


Question: You use Microsoft .NET Framework 4 to create a Windows application. You want to use the ClickOnce technology to deploy the application on computers that run Windows Vista with User Access Control (UAC) enabled. You need to ensure that the application can be installed in a secure manner. Which setting should you use in the application manifest?

  1. <requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
  2. <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
  3. <requestedExecutionLevel level="asInvoker" uiAccess="true" />
  4. <requestedExecutionLevel level="highestAvailable" uiAccess="true" />

Correct Answer: 3


Question: You are developing a Windows Forms application that contains a DataGridView control. The DataGridView is composed of several fields that capture the customer’s name, address, and phone number. You have been asked to provide data validation in a DataGridView to prevent users from leaving the name field if the name field is empty. You need to ensure that users cannot tab out of the name field without entering data. What should you do?

  1. Validate the name field in the CellValidating event. Set e.Cancel – true if the name field is empty.
  2. Validate the name field in the CellErrorTextChanged event. Get e.RowIndex if the name field is empty.
  3. Validate the name field in the CellEnter event. Set the focus on the name field if the name field is empty.
  4. Validate the name field in the CancelRowEdit event. Set the focus on the name field if the name field is empty.

Correct Answer: 1


Question: 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.)
01 <Canvas>
02 <Rectangle Stroke=”Red” Stroke Thickness=”5″ Height=”60″
03 Width-“60” Canvas. Leftoff Canvas.Top-“100”>
04
05 </Rectangle>
06 </Canvas>
You need to rotate the rectangle by 45 degrees by using its upper-left corner as the axis. Which code fragment should you insert at line 04?

  1. <Rectangle.RenderTransforro> <RotateTransform Angle="45" CenterX="0" CenterY=rf0" /> </Rectangle.RenderTransform>
  2. <Rectangle.RenderTransform> <RotateTransform Angle="45" CenterX="100" CenterY="100" /> </Reccangle.RenderTransform>
  3. <Rectangle.LayoutTransform> <RotateTransform Angle="45" CenterX="0" CenterY-"0"/> </Rectangle.LayoutTransform>
  4. <Rectangle.LayoutTransform> <RotateTransforro Angle="45" CenterX="100" CenterY="100"/> </Rectangle.LayoutTransform>

Correct Answer: 1

Tagged . Bookmark the permalink.

Leave a Reply