付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、n耳尹东华软件股份公司DHC Software Co., Ltd姓名:学校:专业:学历: 联系方式: E-mail:考试时间:试卷: 满分100分共20题阅卷时间: 阅卷人:对题错题成绩:一.选择题(中文)1. C#的数据类型有()a) 值类型和调用类型;b) 值类型和引用类型;c) 引用类型和关系类型;d) 关系类型和调用类型;2. int myArray3=new int3 new int35,6,2,new int56,9,7,8,3,new int23,2; myArray322的值是()。a) 9b) 2c) 6d) 越界3以下的C#代码,试图用来定义一个接口:public inte
2、rface IFileint A;int delFile()A = 3;void disFile();关于以上的代码,以下描述错误的是()。a) 以上的代码中存在的错误包括:不能在接口中定义变量,所以int A代码行将岀现错误;b) 以上的代码中存在的错误包括:接口方法delFile是不允许实现的,所以不能编写具体的实现函数;c) 代码void disFile();声明无错误,接口可以没有返回值;d) 代码 void disFile();应该编写为 void disFile();4 下列描述错误的是()a) 类不可以多重继承而接口可以;b) 抽象类自身可以定义成员而接口不可以;c) 抽象类和接
3、口都不能被实例化;d) 一个类可以有多个基类和多个基接口;5接口是一种引用类型,在接口中可以声明() ,但不可以声明公有的域或私有的成员变量。a) 方法、属性、索引器和事件;b) 方法、属性信息、属性;c) 索引器和字段;d) 事件和字段; 二选择题(英文)6. 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 or
4、ders 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 DataG
5、rid1. 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.ModifiedOrigi
6、nal. D: Set the RowFilter property of the DataView object to DataViewRowState.ModifiedCurrent.7. 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 messag
7、e: 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
8、 requiredpermissions.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
9、(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 C
10、ity, 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
11、 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 t
12、o 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
13、 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 WindowsAssembly 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
14、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 WindowsSystem32 folder.10. You use Visual Studio .NET to create a component named Request. This component includes a m
15、ethod 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
16、exceptions. You want to accomplish this goal by writing the minimum amount of code.What should you do?A: Use the following code segment in AcceptRequest: this.Validate();B: Use the following code segment in AcceptRequest:try this.Validate(); catch(Exception ex) throw ex;C: Use the following code seg
17、ment in AcceptRequest:try this.Validate(); catch(Exception ex) throw new Exception(Exception in AcceptRequest, ex);D: Create a custom Exception class named RequestException by using the following code segment:public class RequestException:ApplicationException public RequestException():base() public
18、RequestException(string message):base(message) public RequestException(string message,Exception inner):base(message, inner) In addition, use the following code segment in AcceptRequest:try this.Validate(); catch(Exception ex) throw new RequestException(Exception in AcceptRequest, ex);三简答题:11:.NET 中主要有那几种类型的控件,各有什么区别?列举一些常用控件的属性和事件?12 : .NET 中主要的类库有那些,以及在实际中的使用方向?13 :介绍 ADO.NET 中几个数据库处理的核心对象,以及各自的优缺点。14 :try 里有一个 return 语句,那么紧跟在这个 try 后的 finally 里的 code 会不会被执 行,什么时候被执行,在 return 前还是后 ?15: C#中主要有那几种循环语句,相互之间的区别?16:软件开发过程一般有几个阶段?每
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 京能集团项目部经理工作手册
- 2025-2026学年河北省保定市部分校高一上学期11月期中考试政治试题(解析版)
- 旅游平台产品经理与运营专员的配合策略
- 社交平台会员增长策略面试精讲
- 雨课堂学堂在线学堂云《骨伤科手术学(广州中医药)》单元测试考核答案
- 2026年居家社区养老服务中心下属事业单位选聘考试试题(附答案)
- 系统维护外包策略分析报告
- 京东集团技术设备安装调试规范
- 交通枢纽机电系统优化方案
- 航空业运营主管的航班调度方案
- 铝合金门窗专项施工方案
- 长郡中学2026届高三月考试卷(六)英语+答案
- 2026年及未来5年市场数据中国穿刺机器人行业发展监测及投资策略研究报告
- 2026年1月浙江省高考选考技术试题真题(含答案详解)
- 2026年民宿管家数字化运营考核试题及真题
- 2026北京朝阳初二上学期期末数学试卷和答案
- 2026年时事政治热点题库(研优卷)
- 广州大学2026年第一次公开招聘事业编制管理和教辅人员备考题库及答案详解一套
- 真石漆维修施工方案(3篇)
- 哈三中2025-2026学年度上学期高二学年期末生物试题 多维细目表 命题设计考量表-生物
- 公司质量管理体系改进方案
评论
0/150
提交评论