笔试题现场服务工程师

思而思学网 2023-12-20 17:41:22

 选择题

1:public static void Main(string[] args)

{

int i = 2000;

object o = i;

i = 2001;

int j =(int) o;

Console.WriteLine("i={0},o={1}, j={2}",i,o,j);

}

A.i=2001,o=2000,j=2000

B.i=2001,o=2001,,j=2001

C.i=2000,o=2001,,j=2000

D.i=2001,o=2000,j=2001

2:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?

A.计划阶段、开发阶段、运行阶段

B.设计阶段、开发阶段、编码阶段

C.设计阶段、编码阶段、维护阶段

D.计划阶段、编码阶段、测试阶段

3:What compiler switch creates an xml file from the xml comments in the files in an assembly?

A./text

B./doc

C./xml

D./help

4: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]的值是:

A.9

B.2

C.6

D.越界

5:如果设treeView1=new TreeView(),TreeNode node=new TreeNode("根结点" ),则treeView1.Nodes.Add(node)返回的是一个 ()类型的值。

A.TreeNode

B.int

C.string

D.TreeView

6:以下描述错误的是:

A.在C++中支持抽象类而在C#中不支持抽象类。

B.C++中可在头文件中声明类的成员而在CPP文件中定义类的成员,在C#中没有头文件并且在同一处声明和定义类的成员。

C.在C#中可使用 new 修饰符显式隐藏从基类继承的成员。

D.在C#中要在派生类中重新定义基类的虚函数必须在前面加Override。

7:设有变量说明语句int a=1,b=0;

则执行以下程序段的输出结果为( )。

switch (a)

{

case 1:

switch (b)

{

case 0:printf("0");break;

case 1:printf("1");break;

}

case 2:printf("2");break;

}

printf(" ");

A.0

B.02

C.012

D.有语法错误

8:在下述选项时,没有构成死循环的程序是

A.int i=100 while (1) { i=i%100+1; if (i>100) break; }

B.for (;;);

C.int k=1000; do { ++k; }while(k>=10000);

D.int s=36; while (s);--s;

9:声明一个委托public delegate int myCallBack(int x); 则用该委托产生的回调方法的原型应该是

A.void myCallBack(int x)

B.int receive(int num)

C.string receive(int x)

D.不确定的

10:Which of the following operations can you NOT perform on an ADO.NET DataSet?

A.A DataSet can be synchronised with a RecordSet.

B.A DataSet can be synchronised with the database.

C.A DataSet can be converted to XML.

D.You can infer the schema from a DataSet

热门推荐

最新文章