2024年4月8日发(作者:)

Wuxi Development Center screening exams

(90 minutes)

Name: ___________________; Score : PartI___, PartII____, PartIII____:Total_____

Part I -- Technique Skill

1. If a method is marked as protected internal who can access it?

A) Classes that are both in the same assembly and derived from the declaring class

B) Classes within the same assembly, and classes derived from the declaring

C) Only methods that are in the same class as the method in question

D) Internal methods can be only called using relection

2. In Object Oriented Programming, how would you describe encapsulation?

A) The conversion of one type of object to another.

B) The runtime resolution of method calls.

C) The exposition of data.

D) The separation of interface and implementation.

3. When creating a C# Class Library project, what’s the name of the supplementary file that

Visual creates that contains General Information about the assembly?

A) B)

C) D)

4. What is a delegate?

A) A strongly typed function pointer

B) A light weight thread or process that can call a single method

C) A reference to an object in a different process

D) An inter-process message channel

5. What is boxing?

A) Encapsulating an object in a value type.

B) Encapsulating a copy of an object in a value type.

C) Encapsulating a value type in an object.

D) Encapsulating a copy of a value type in an object.

6. Which of the following is not a method of ?

A) GetType B) ToString C) Equals D) Clone

7. Which of the following is a value type, and not a reference type?

1页 共8页

A) array B) delegate C) enum D) class

8. What is a satellite Assembly?

A) A peripheral assembly designed to monitor permissions requests from an application.

B) Any DLL file used by an EXE file.

C) An assembly containing localized resources for another assembly.

D) An assembly designed to alter the appearance or .skin. of an application.

9. How to implement Multiple Inheritances in C#?

A) Using Interface

B) Using Abstract Class

C) Using Delegates

D) Using Events

10. Which of these statements correctly declares a two-dimensional array in C#?

A) int[,] myArray;

B) int[][] myArray;

C) int[2] myArray;

D) [2] myArray;

11. Which interface allows a collection to be navigated using the foreach statement?

A) INavigator B) ICollection C) IEnumerator D) IEnumerable

12. C# types are defined in ____ ,organized by ____ , complied into ____ , and then grouped into

____ .

A) files, modules, namespaces,assemblies

B) files,namespaces,assemblies,modules

C) files,assembiles,namespaces,modules

D) files,namespaces,modules,assemblies

13. In ,for Command object’s method ExecuteNonQuery() and ExecuteReader(),

which of the following statement is wrong?

A) insert,update and delete is executed mainly using ExecuteNonQuery()

B) ExecuteNonQuery() will return the number of rows that is affected by the

executed sql

C) select can only executed by ExecuteReader()

D) ExecuteReader() will return a DataReder object

14. 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.

2页 共8页

C) a DataSet can be converted to XML.

D) You can infer the schema from a DataSet

15. In C#, the general steps of network communication programming with Socket is:create

Socket listener,( ) and send or receive data by Socket。

A) create Socket connection

B) get port number

C) get IP address

D) get host name

16. Which of the following is the correct way to disable session state in an page?

A) <%@ Page SessionState="false" %>

B) <%@ Page UseSessionState="false" %>

C) <%@ Page DisableSessionState="true" %>

D) <%@ Page EnableSessionState="false" %>

17. Which of the following is not server side control?

A) HtmlInputButton B) RadioButton C) DropDownList D) CheckBox

18. If we must make sure that the client input value is great than 30,which validation control

should use?

A) RequiredFieldValidator B) CompareValidator

C) RangeValidator D) RegularExpressionValidator

19. There are many method to maintain state in , which of the following is on client

side?

A) VIEWSTATE B) SESSION C) APPLICATION D) DATA CACHE

20. How long is the default life cycle of Cookies ?

A) 20 minutes B) 30 minutes C) one day D) invalid when browser close

21. To get user IP of pages with output cache in real time, which of the following event can we

use?

A)

C)

22. In ,which of the following statement about VaryByParam property used when set

page cache is right?

A) represent the time that page is to be cached, measured by second

B) it is used to specify the place of output cache

C) this property can be set to "none"

3页 共8页

B) equest

D) None of above

D) it is used to change output cache of user control

23. Read the following statement about :

(1) each Http request contains two part: head and body

(2) if Http request type is Get, the data is send by body, if request type is post, the data is send by

head

A) (1) right, (2) right

B) (1) right, (2) wrong

C) (1) wrong, (2) right

D) (1) wrong, (2) wrong

24. What’s the transport protocol you use to call a Web service?

A) HTTP and SOAP

B) TCP and HTTP

C) UDP and SOAP

D) TCP and FTP

25. A complete HTML document must contain 3 elements, they are head, html and( )。

A) script

B) body C) title D) link

26. Which pseudo-class can define the style when mouse is over a link?

A) a:visited

27. Which of the following is not CSS selector?

A) HTML tag B) variable

C) class D) ID

28. Which of the following javascript can popup a alert dialog box?

A) (test)

B) (test)

C) ('test ')

D) ('test ')

29. What’s the output of the following (JavaScript)?

var aa = new Array(1, 2, 4, 5, 3, 6);

var c = 0;

for (var i = 0; i < ; ++i){ c += (); }

(c);

Note: () is to remove and return the last element of the array

A) 7

B) 14 C) 21 D) None of above

B) a:link C) a:hover D) a:active

30. For regular expression ([0-9a-z]{4,})|(..{3,6}), which of the following dose not match?

4页 共8页

A) 2asd B) .&8# C) avdf* D) .ads

Part II -- Program Skill

1. Now there is a table named “tree”,its structure is:

ID

Int

parentID

int

Name

Varchar

isDelete

bit

The following program is to delete a given tree node and all of its child node, all exception

handling code have been omitted. Please fill blanks in the program, note that you can write

only one statement in each blank.

public class Tree

{

private int ID;

private int parentID;

private string name;

private bool isDelete;

public void deleteNode()

{

date(“UPDATE tree SET isDELETE=1 WHERE ID=”+);

}

public bool hasChildren()

{

return statement 1;

}

public Tree[] getChildren()

{

return ery(“SELECT * FROM tree WHERE isDelete=0

parentID=”+);

}

public void delete( )

{

if(!hasChildren())

statement 2;

else

{

foreach(Tree child in getChildren())

statement 3;

deleteNode();

}

}

}

public class DBUtil

5页 共8页

and

{

// execute specific sql query and assembly returned data to Tree array

public static Tree[] execQuery(string sql)

{

// code omitted

}

/**

* execute update sql

**/

public static void execUpdate(string sql)

{ //code omitted }

}

2. The following program is to judge whether there is a main element is a integer array T[n].

Main element is the element who’s occurrence time is more than n/2. Fill blanks in the

program; note that you can write only one statement in each blank.

private static boolean hasMaster(int data[])

{

int n=;

int count=0;

int seed;

seed = data[0];

for(int i=1; i

{

if(seed == data[i])

count++;

else{

if(count>0)

count--;

else

statement 1;

}

}

count = 0;

for(int i=0; i

{

if (seed == data[i])

statement 2

}

statement 3

return true;

return false;

}

6页 共8页

Part III -- Logic Skill

一、 数字推理

给你一个数列,但其中缺少一项,要求你仔细观察数列的排列规律,然后从四个供选择的答案中

选择你认为最合理的一项,来填补空缺项,使之符合原数列的排列规律(只有一个最佳答案)。

1. 1,3,7,13,15,19,____

A 21 B 23 C 25 D 27

2. 2,2,3,6,15,____

A 45 B 18 C 16 D 90

二、 数学运算

3. 某树林中的树排成一个方阵,最外层的树是60棵,问这个方阵共有树多少棵?

A.196棵 B.225棵 C.250棵 D. 256棵

4. 一个正方形的边长增加10%后,它的面积增加百分之几?

A.10% B.20% C.21% D.40%

三、 言语推理

5. 机器人所表现的任何智能,都是人类智能活动的结果。没有科学家精心编制的程序,没有迅

速发展的电子技术,没有精密的机械加工,机器人是不可能表现出任何智能的。

以下哪项,从上述题干中推出最为恰当:

A. 机器人没有智能

B. 机器人的智能是人类赋予的

C. 机器人智能的发展有可能超过人类

D. 机器人在未来有广泛的用途

6. 第13届生物学大会在北京举行,王教授、陈教授和张教授中至少有一人参加了这次大会。已

知:

(1)报名参加大会的人必须提交一篇英文学术论文,经专家审查后才会发邀请函

(2)如果王教授参加这次大会,那么陈教授一定参加。

(3)张教授向大会提交了一篇德文的学术论文。

根据以上情况,以下哪项一定为真?

A. 王教授参加了这次大会。

7页 共8页

B. 陈教授参加了这次大会。

C. 张教授参加了这次大会。

D. 王教授和陈教授都参加了这次大会。

7. 只有领导关心职工的需求,职工才可能全力以赴工作。

据此我们可以知道:

A. 领导关心职工需求之后,职工就会全力以赴地工作。

B. 职工不尽心尽力工作,是由于领导不关心他。

C. 职工尽心尽力工作,只是因为领导关心他。

D. 领导不关心职工的需求,职工一定不会全力以赴地工作。

四、 图形推理

在下面的每道题中包含两套图形。这两套图形具有某种相似性。第一套图形包括三个图形,

第二套图形包括两个图形和一个问号。从四个选项选出最适合取代问号的一个图形,使两套图形

表现出最大的相似性,而且应使第二套图形也表现出自己的特征(只有一个最佳答案)。

8.

9.

10.

8页 共8页