姓名:_____________ 学校:_____________________ 专业:______________________
学历:__________ 联系方式:______________ E-mail:__________________________
考试时间: ________________________
试卷: ____________________________ 满分 100 分 共 20 题
阅卷时间:________ 阅卷人:_________ 对 ___题 错 ___题 成绩:______________
一.选择题(中文)
C# 的数据类型有( )
值类型和调用类型;
值类型和引用类型;
引用类型和关系类型;
关系类型和调用类型;
int[ ][ ] myArray3=new int[3][ ]{new int[3]{5,6,2},new int[5]{6,9,7,8,3},new int[2]{3,2}}; myArray3[2][2]
的值是( )。
9
2
6
越界
3.以下的 C# 代码,试图用来定义一个接口:
public interface IFile
{
int A;
int delFile()
{
A=3;
}
void disFile();
}
关于以上的代码,以下描述错误的是() 。
a) 以上的代码中存在的错误包括:不能在接口中定义变量,所以 int A 代码行将出现错误;
以上的代码中存在的错误包括:接口方法delFile 是不允许实现的,所以不能编写具体的实现函数;
代码 void disFile(); 声明无错误,接口可以没有返回值;
d) 代码 void disFile(); 应该编写为 void disFile(){} ;
4.下列描述错误的是()
类不可以多重继承而接口可以;
抽象类自身可以定义成员而接口不可以;
抽象类和接口都不能被实例化;
一个类可以有多个基类和多个基接口;
5.接口是一种引用类型,在接口中可以声明() ,但不可以声明公有的域或私有的成员变量。
方法、属性、索引器和事件;
方法、属性信息、属性;
索引器和字段;
事件和字段;
二.选择题(英文)
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 b
面试题(试题)知识讲解 来自淘豆网m.daumloan.com转载请标明出处.