Microsoft 70-502 Real Exam Questions
TS: Microsoft .NET Framework 3.5, Windows Presentation Foundation Application Development
This exam is designed to test the candidate’s knowledge on using Windows Presentation Foundation on the .NET Framework 3.5 and Visual Studio 2008.
Questions that contain code will be presented in either VB or C#. Candidates can select one of these languages when they start the exam.
1: You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. The application includes a window that displays a rectangle. You need to transform the rectangle by rotating it 45 degrees. Which XAML code fragment should you use?
A.<Rectangle.RenderTransform> <TranslateTransform X="45" Y="45" /></Rectangle.RenderTransform>
B.<RectangleGeometry.Transform> <RotateTransform CenterX="40" CenterY="70" Angle="45" /></RectangleGeometry.Transform>
C.<Rectangle.RenderTransform> <SkewTransform CenterX="25" CenterY="25" AngleX="0" AngleY="45" /></Rectangle.RenderTransform>
D.<Rectangle.RenderTransform> <ScaleTransform CenterX="0" CenterY="0" ScaleX="45" ScaleY="45" /></Rectangle.RenderTransform>
Correct Answers: B
2: You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. The application contains a custom event handler. You need to ensure that the custom event handler always executes when the event occurs, even if the Handled property is set to true. What should you do?
A.Set the HandledEventsToo property to true in the event definition code segment.
B.Set the HandledEventsToo property to false in the event definition code segment.
C.Set the HandledEventsToo property to true in the event definition XAML code fragment.
D.Set the HandledEventsToo property to false in the event definition XAML code fragment.
Correct Answers: A
3: You plan to create an application by using Microsoft .NET Framework 3.5 and Microsoft Visual Studio 2008.
You need to ensure that the application meets the following requirements:
The entire application user interface is designed by using XAML.
The application runs by default under the FullTrust permission set on the client computer.
Which type of application should you use?
A.Windows Service application
B.Windows Forms application
C.Windows Presentation Foundation application
D.Windows Presentation Foundation Browser application
Correct Answers: C
4: You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. You deploy the installation files on the client computers by using the ClickOnce technology. When the users attempt to install the application on a Windows Vista client computer, a dialog box opens. The dialog box displays the following security warning: "The publisher cannot be verified." You need to prevent the dialog box from appearing. What should you do?
A.Assign a strong name to each application assembly.
B.Sign the deployment manifest file by using the Authenticode signature.
C.Create a digital signature for the application assemblies. Add the digital signature to the application manifest file.
D.Open the Assembly Properties window of Microsoft Visual Studio 2005. Type the name of your company in the Assembly Company field.
Correct Answers: B
5: Your team is creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 3.5. You plan to deploy the application by using the ClickOnce technology. You need to ensure that the application can be used even when network access is unavailable. Which command should you use?
A.The mage CUpdate App1.deploy CInstall true command
B.The mage CUpdate App1.deploy CAppCodeBase C:\App1 command
C.The mage CUpdate App1.deploy CProviderUrl C:\App1.deploy command
D.The mage CUpdate App1.deploy CAppManifest C:\App1\application.manifest command
Correct Answers: A
6: You deploy a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
Users use Microsoft Windows Internet Explorer to launch the application.
The application uses an XML file to persist user information. The XML file is used by multiple assemblies within the application. The company security policy requires that each user has a separate copy of the XML file.
During testing, you discover that the application can persist information to the XML file on the development computer but not on the client computers.
You need to ensure that the application can persist information to the XML file on all the client computers. You also need to ensure that the application maintains the required security level.
What should you do?
A.Save the XML file to the %AppData% folder.
B.Save the XML file to the %UserProfile% folder.
C.Save the XML file to an isolated storage store that is retrieved from the System.IO.IsolatedStorageFile.GetUserStoreForAssembly() function.
D.Save the XML file to an isolated storage store that is retrieved from the System.IO.IsolatedStorageFile.GetUserStoreForApplication() function.
Correct Answers: D
7: You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. You deploy the application on client computers by using the ClickOnce technology. You need to ensure that the application downloads an assembly to a client computer only if the assembly is required. Which event should you implement?
A.The AssemblyLoad event of the AppDomain object
B.The AssemblyResolve event of the AppDomain object
C.The CheckForUpdateCompleted event of the ApplicationDeployment object
D.The DownloadFileGroupCompleted event of the ApplicationDeployment object
Correct Answers: B
8: You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You perform the following two tasks:
Use a digital certificate that is generated by an internal certificate authority (CA) to sign the application.
Store the application files on a central Web site.
You instruct the users to access the Web site and start the application by using the ClickOnce technology.
The users report that their attempts to start the application fail. You need to ensure that the users can use the application.
What should you do?
A.Deploy the digital certificate on the Trusted Publisher store of the Web server.
B.Deploy the digital certificate on the Trusted Publisher store of each client computer.
C.Redeploy the application by using Microsoft Visual Studio 2005 Publish Wizard.
D.Recompile the application by using a key file that is generated by the sn.exe file.
Correct Answers: B
Download | Password: certificatexam.com