Page 1

Microsoft EXAM 70-505 Microsoft .NET Framework 3.5,Windows Forms Application Development

DEMO http://www.passfine.com/70-505.html


The safer , easier way to help you pass any IT exams.

Question: 1 You are developing a .NET Framework 3.5 Windows Forms application that will print the contents of a file. You need to use the PrintDialog class to display the Print dialog box to the user. Which of the following should you use? A. the RunDialog() method B. the ShowDialog() method C. the GetLifetimeService() method D. the InitializeLifetimeService() method E. the PrintToFile property F. the UseEXDialog property G. the AllowPrintToFileproperty H. the DesignMode property

Answer: A OR B Question: 2 You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new form in your application. You add two ListBox controls named ListSource and ListTarget to the form. The event handler methods that support drag-and-drop operations between the two controls are as shown in the following table. Event Event Handler Description ListSource.MouseDown Starts the drag-and-drop operation. Identifies the ListBox data to be moved. ListSource.MouseMove Calls the ListSource.DoDragDrop() method by passing the ListBox data and a DragDropEffect object. ListTarget.DragOver Sets the current drag-and-drop effect based on the drop data and key states. You need to ensure that based on the drag-and-drop effect, the appropriate cursor is displayed. Which code segment should you use? A. ListSource.GiveFeedback += new GiveFeedbackEventHandler( delegate(object sender, GiveFeedbackEventArgs e){e.UseDefaultCursors = false;if (e.Effect == DragDropEffects.Move)Cursor.Current = moveCursor;elseCursor.Current = noneCursor; }); B. ListSource.DragOver += new DragEventHandler( delegate(object sender, DragEventArgs e){if (e.Data.GetDataPresent(typeof(string)))return;if (e.Effect == DragDropEffects.Move)Cursor.Current = moveCursor;elseCursor.Current = noneCursor;}); C. ListSource.DragDrop += new DragEventHandler( delegate(object sender, DragEventArgs e){if (e.Effect == DragDropEffects.Move)Cursor.Current = moveCursor;elseCursor.Current = noneCursor; }); D. ListSource.QueryContinueDrag += new QueryContinueDragEventHandler( delegate(object sender, QueryContinueDragEventArgs e){if (e.Action == DragAction.Drop)Cursor.Current = moveCursor;elseCursor.Current = noneCursor; });

Answer: A Complete collection of 70-505 Exam's Question and Answers. http://www.passfine.com

1 1


The safer , easier way to help you pass any IT exams.

Question: 3 You create Windows Forms applications by using the .NET Framework 3.5. You plan to deploy a new Microsoft Visual Studio Tools for Office (VSTO) add-in for Microsoft Office Excel 2007. The client computers have no other VSTO add-ins deployed. You need to ensure that the VSTO add-in is deployed appropriately. What should you do? A. ?Use the ClickOnce technology. ?Include the .NET Framework 3.5 as a required prerequisite. B. ?Use the Windows Installer deployment. ?Include a deployment manifest which specifies that only administrative permissions are required to install the add-in. C. ?Use the Windows Installer deployment. ?Include a deployment manifest that has been signed by using an Authenticode certificate. D. ?Use the ClickOnce technology. ?Include the Microsoft Office 2007 Primary Interop assemblies as a prerequisite.

Answer: D Question: 4 You are developing a .NET Framework 3.5 Windows Forms application that will print the contents of a file. You need to use the PrintDialog class to display the Print dialog box to the user. Which of the following should you use? A. the RunDialog() method B. the ShowDialog() method C. the GetLifetimeService() method D. the InitializeLifetimeService() method E. the PrintToFile property F. the UseEXDialog property G. the Document property H. the Reset() method

Answer: A OR B

Question: 5 You are creating a Windows Forms application by using the .NET Framework 3.5 You plan to design a new control that will be used on multiple forms in the application. You need to ensure that the control meets the following requirements: ?It retrieves data from a Microsoft SQL Server 2008 database instance. Complete collection of 70-505 Exam's Question and Answers. http://www.passfine.com

2 2


The safer , easier way to help you pass any IT exams. ?It uses Windows Presentation Foundation (WPF) classes to display data. ?It uses user-customizable actions when the control is first painted on the form. What should you do? A. Create a new custom class for the control that is derived from the ContentPresenter class. B. Create a new custom class for the control that is derived from the UserControl class. C. Create a new custom class for the control that is derived from the Control class. D. Create a new custom class for the control that is derived from the ContentControl class.

Answer: C Question: 6 You create Windows Forms applications by using the .NET Framework 3.5. You plan to deploy a new application to client computers that use the Windows Vista operating system. You need to ensure that the user can install the application without being prompted for elevated permissions. What should you do? A. ?Sign the deployment manifest by using an Authenticode certificate. ?Publish the application to a CD-ROM. ?Install the application on each client computer from the CD-ROM. B. ?Add the requestedExecutionLevel="highestAvailable" attribute to the deployment manifest. ?Publish the application to a server on the network. ?Install the application on each client computer. C. ?Add the requestedExecutionLevel="requiresAdministrator" attribute to the deployment manifest. ?Publish the application to a server on the network. ?Install the application on each client computer. D. ?Sign the deployment manifest by using an Authenticode certificate. ?Publish the application to a server on the network. ?Install the application on each client computer.

Answer: A

Complete collection of 70-505 Exam's Question and Answers. http://www.passfine.com

3 3


70 505  
Advertisement
Read more
Read more
Similar to
Popular now
Just for you