1.
You are creating a Windows Presentation Foundation application. You create a window for the application.
The application contains an audio file named AudioFileToPlay.wav.
You need to ensure that the following requirements are met:
The audio file is played each time you click the client area of the window.
The window provides optimal performance when the audio file is being played.
What should you do?
2.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
Your project contains a folder named Data. You add a .MP3 file named song.mp3 in the Data folder.
You set the Build Action property of the application to Resource. You need to access the .MP3 file from one of the application classes.
Which code segment should you use?
3.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application will display documents by using an instance of the FlowDocumentPageViewer class. The instance is named fdpv.
Users can highlight and annotate the content of the documents. You need to ensure that annotations made to a document are saved and rendered when the document is displayed again.
Which code segment should you use?
4.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You add a window that displays three-dimensional graphics.
You need to create a camera that meets the following requirements:
It displays a graphic by excluding the Z-dimension.
It focuses directly on the front portion of the graphic.
Which XAML code fragment should you use?
5.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You create a window for the application. You add an image to the window.
You need to ensure that the following requirements are met:
The image is scaled to completely fit the client area of the window.
The image aspect ratio is preserved.
The entire image is displayed within the window.
Which code fragment should you use?
6.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application will display articles that contain photographs, geometric figures, and other rich content. You plan to format the articles in flow documents.
You need to select a XAML element that provides the following functionality by default:
Searches the content of any article.
Views any article in single-page and multiple-page layouts.
Adjusts the font size of the content.
What should you do?
7.
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?
8.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application displays an image that is defined as an application resource.
You need to ensure that the following requirements are met:
The image file must appear in the output directory after the build.
The image can be modified without being rebuilt.
What should you do?
9.
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?
10.
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?