當前位置:文思屋>學習教育>考研>

net軟體開發筆試題

文思屋 人氣:2.42W

選擇題

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**