当前位置: 首页 > >

东华软件股份公司-NET面试题(试题)

发布时间:

东华软件股份公司-NET 面试题 (试题) B: Run the Microsoft CLR Debugger (DbgCLR.exe) on the server to view the permissions requested by the application at run time. C: Run the Runtime Debugger (Cordbg.exe) on the server to view the permissions requested by the application at run time. D: Run the Permissions View tool (Permview.exe) on the server to view the permissions required by MyComponent. E: Run the MSIL Disassembler (Ildasm.exe) on the server to view permission requests by MyComponent that were denied. 8.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(); 9.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. 10.You use Visual Studio .NET to create a component named Request. This component includes a method named AcceptRequest, which tries to process new user requests for services. AcceptRequest calls a private function named Validate. You must ensure that any exceptions encountered by Validate are bubbled up to the parent form of Request. The parent form will then be responsible for handling the exceptions. You want to accomplish this goal by writi



友情链接: