net软件开发笔试题

广博吧 人气:2.32W

选择题

net软件开发笔试题

1:Which of the following operations can you NOT perform on an 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.

can infer the schema from a DataSet

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

Node

ng

View

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

{

int i = 2000;

object o = i;

i = 2001;

int j =(int) o;

eLine("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

4:假定a和b为int型变量,则执行下述语句组后,b的值为

a=1;

b=10;

do

{

b-=a;

a++;

} while (b--<0);

A.9

B.-2

C.-1

D.8

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

myCallBack(int x)

receive(int num)

ng receive(int x)

D.不确定的

6:在C#中利用Socket进行网络通信编程的一般步骤是:建立Socket侦听、( )、利用Socket接收和发送数据。

A.建立Socket连接

B.获得端口号

C.获得IP地址

D.获得主机

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.**0****2**

C.**0****1****2**