Microsoft 70-316 Real Exam Questions
Developing and Implementing Windows-Based Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET
Candidates for this exam work on a team in a medium-sized or large development environment that uses Microsoft Visual Studio .NET, Enterprise Developer Edition. Candidates have at least one year of experience developing Windows-based applications. Candidates should have a working knowledge of Microsoft Visual C# .NET.
1: You use Visual Studio .NET to create a Windows-based application. The application includes a form named Shipments. You implement print functionality in Shipments by using the native .NET System Class Libraries. Shipments will print a packing list on tractor-fed preprinted forms. The packing list always consists of two pages. The bottom margin of page 2 is different from the bottom margin of page 1. You must ensure that each page is printed within the appropriate margins. What should you do?
A.When printing page 2, set the bottom margin by using the PrintPageEventArgs object.
B.When printing page 2, set the bottom margin by using the QueryPageSettingsEventArgs object.
C.Before printing, set the bottom margin of page 2 by using the PrintSetupDialog object.
D.Before printing, set the bottom margin of page 2 by using the PrinterSettings object.
Correct Answers: A
2: You use Visual Studio .NET to create a Windows-based application. You need to make the application accessible to users who have low vision. These users navigate the interface by using a screen reader, which translates information about the controls on the screen into spoken words. The screen reader must be able to identify which control currently has focus. One of the TextBox controls in your application enables users to enter their names. You must ensure that the screen reader identifies this TextBox control by speaking the word "name" when a user changes focus to this control. Which property of this control should you configure?
A.Tag
B.Text
C.Name
D.AccessibleName
E.AccessibleRole
Correct Answers: D
3: You develop a Windows-based application that includes several menus. Every top-level menu contains several menu items, and certain menus contain items that are mutually exclusive. You decide to distinguish the single most important item in each menu by changing its caption text to bold type. What should you do?
A.Set the DefaultItem property to True.
B.Set the Text property to "<b>True</b>".
C.Set the Checked property to True.
D.Set the OwnerDraw property to True.
Correct Answers: A
4: You use Visual Studio .NET to develop a Windows-based application. Your application will display customer order information from a Microsoft SQL Server database. The orders will be displayed on a Windows Form that includes a DataGrid control named DataGrid1. DataGrid1 is bound to a DataView object. Users will be able to edit order information directly in DataGrid1. You must give users the option of displaying only edited customer orders and updated values in DataGrid1. What should you do?
A.Set the RowStateFilter property of the DataView object to DataViewRowState.ModifiedOriginal.
B.Set the RowStateFilter property of the DataView object to DataViewRowState.ModifiedCurrent.
C.Set the RowFilter property of the DataView object to DataViewRowState.ModifiedOriginal.
D.Set the RowFilter property of the DataView object to DataViewRowState.ModifiedCurrent.
Correct Answers: B
5: You use Visual Studio .NET to create a Windows-based application. The main form of the application contains several check boxes that correspond to application settings. One of the CheckBox controls is named advancedCheckBox. The caption for advancedCheckBox is Advanced. You must enable users to select or clear this check box by pressing ALT+A. Which two actions should you take? (Each correct answer presents part of the solution. Choose two.)
A.Set advancedCheckBox.AutoCheck to True.
B.Set advancedCheckBox.AutoCheck to False.
C.Set advancedCheckBox.Text to "&Advanced".
D.Set advancedCheckBox.Tag to "&Advanced".
E.Set advancedCheckBox.CheckState to Unchecked.
F.Set advancedCheckBox.CheckState to Indeterminate.
G.Set advancedCheckBox.Appearance to Button.
H.Set advancedCheckBox.Appearance to Normal.
Correct Answers: A C
6: You use Visual Studio .NET to create a Windows-based application. The application includes a form that contains several controls, including a button named exitButton. After you finish designing the form, you select all controls and then select Lock Controls from the Format menu. Later, you discover that exitButton is too small. You need to enlarge its vertical dimension with the least possible effort, and without disrupting the other controls. First you select exitButton in the Windows Forms Designer. What should you do next?
A.Set the Locked property to False.
Set the Size property to the required size.
Set the Locked property to True.
B.Set the Locked property to False.
Use the mouse to resize the control.
Set the Locked property to True.
C.Set the Size property to the required size.
D.Use the mouse to resize the control.
Correct Answers: C
7: Your company uses Visual Studio .NET to create a Windows-based application for a hospital. The application is named PatientTracker, and it calls an assembly named Schedule. Six months pass. The hospital asks your company to develop a new Windows-based application. The new application will be named PhysicianTracker, and it will also call Schedule. Because you anticipate future revisions to this assembly, you want only one copy of Schedule to serve both applications. Before you can use Schedule in PhysicianTracker, you need to complete some preliminary tasks. Which three actions should you take? (Each correct answer presents part of the solution. Choose three.)
A.Create a strong name for Schedule.
B.Use side-by-side execution to run Schedule.
C.Install Schedule in the global assembly cache.
D.Move Schedule to the Windows\System32 folder.
E.Create a reference in PhysicianTracker to Schedule.
F.Create a reference in PhysicianTracker to PatientTracker.
Correct Answers: A C E
8: You use Visual Studio .NET to create several applications that will be deployed commercially over the Internet. You must ensure that customers can verify the authenticity of your software.
Which action or actions should you take? (Choose all that apply.)
A.Sign your portable executables by using Signcode.exe.
B.Generate an X.509 certificate by using Makecert.exe.
C.Purchase an X.509 certificate from a certificate authority.
D.Purchase a Software Publisher Certificate from a certificate authority.
E.Convert your certificate to a Software Publisher Certificate by using Cert2spc.exe.
Correct Answers: A D
9: You use Visual Studio .NET to create an application that will be deployed to several client computers. You plan to use the Visual Studio .NET Setup Wizard to create a setup package to distribute your application. Because of licensing restrictions, you must ensure that the setup package can be installed only on computers that have a particular registry key. What should you do?
A.Add a registry key to the setup project. Set the Transitive property of your key to True.
B.From the Properties window, set the private key file option to the registry key.
C.From the Launch Conditions window, add a search for the registry key. Add a launch condition to evaluate the search results.
D.Add a project-specific installer component to your application, and write code that searches for the required registry key. Cancel
the setup if the registry key does not exist on the client computer.
Correct Answers: C
10: You use Visual Studio .NET to create an application for 100 users in your customer support department. The users run a variety of operating systems on a variety of hardware. You plan to create a distribution package for your application. Your application includes several Windows Forms with many controls on each. You must ensure that the Windows Forms will launch as quickly as possible on client computers. You must not adversely affect the functionality of the application. What should you do?
A.Set the Compression property of the setup project to Optimized for Speed. Then build your distribution package.
B.For each Windows Form in your application, set the CausesValidation property to False.
C.Use the Native Image Generator (Ngen.exe) to precompile your application. Add the precompiled application to your distribution
package.
D.Add a custom action to your setup project to precompile your application during installation.
Correct Answers: D
Download | Password: certificatexam.com