1.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 2.You use Visual Studio .NET to create an application. Your application contains two classes, Region and City, which are defined in the following code segment. (Line numbers are included for reference only.) 01 public class Region { 02 public virtual void CalculateTax() { 03 // Code to calculate tax goes here. 04 } 05 } 06 public class City:Region { 07 public override void CalculateTax() { 08 // Insert new code. 09 } 10 } You need to add code to the CalculateTax method of the City class to call the CalculateTax method of the Region class. Which code segment should you add on line 08? A: CalculateTax();B: this.CalculateTax();C: base.CalculateTax();D: Region r = new Region();r.CalculateTax();Correct Answers: C 3.You use Visual Studio .NET to create a component that will be shared by two client applications. Eventually, you plan to deploy new versions of this shared component. However, not all of the new versions will be compatible with both client applications. When you deploy the shared component and the client applications, you must ensure that you can upgrade the shared component for a single client application. You must also minimize the need for configuration changes when you deploy new versions of the component. What are two possible ways to achieve your goal? (Each correct answer presents a complete solution. Choose two.) A:Deploy each client application to its own folder.Deploy the shared component to its own folder.Register the shared component by using RegSvr32 with the /s option.B:Deploy each client application to its own folder.Deploy a separate copy of the shared component to each client application folder.When you deploy a new version of the component, replace the older version only if the new version remains compatible with theclient application in the same folder.C:Compile the client applications with references to the shared component.Deploy both client applications and the shared component to a single folder.When you deploy a new version of the component, increment its version number.D:Create a strong name for the shared component and specify a version number.Compile each client application and bind it to the shared component.Deploy the shared component to the global assembly cache on the client computer.Deploy each client application to its own folder.When you deploy a new version of the component, increment its version number.Correct Answers: B, D 4.You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside on the client computer when the application is installed. You must ensure that any future applications installed on the same computer can access the assembly. Which two actions should you take? (Each correct answer presents part of the solution. Choose two.) A:Use XCOPY to install the assembly in the global assembly cache.B:Use XCOPY to install the assembly in the Windows\Assembly folder.C:Create a strong name for the assembly.D:Precompile the assembly by using the Native Image Generator (Ngen.exe).E:Modify the application configuration file to include the assembly.F:Use a deployment project to install the assembly in the global assembly cache.G:Use a deployment project to install the assembly in the Windows\System32 folder.Correct Answers: C, F 5.You develop an application that will be sold commercially. You create a Visual Studio .NET setup project to distribute the application. You must ensure that each user accepts your license agreement before installation occurs. What should you do? A: Add a launch condition to your setup project. Add your license agreement to the Message property of the launch condition.B: Open the user interface designer for your setup project. Select the Welcome dialog box from the Start object and add your licenseagreement to the CopyrightWarning property.C: Save your license agreement in Rich Text Format and add the file to your setup project. Open the property pages for the setupproject and set the Certificate file to the name of your Rich Text file.D: Save your license agreement in Rich Text Format and add the file to your setup project. Open the user interface designer for thesetup project. From the Start object, select the License Agreement dialog box and set the LicenseFile property to the name ofyour Rich Text file.Correct Answers: D 6.Another developer in your company uses Visual Studio .NET to create a component named MyComponent. You deploy MyComponent to a server. When you execute MyComponent, you receive the following error message: "System.Security.Policy.PolicyException: Failed to acquire required permissions." As quickly as possible, you need to discover which permissions are required by MyComponent. What should you do? A: Request the source code from the developer who created MyComponent. Examine the source code to find the required
本新闻共2页,当前在第1页 1 2