三泰电子系统分析师笔试题目

进修社 人气:2.22W

 选择题

三泰电子系统分析师笔试题目

1:关于中的代码隐藏文件的描述正确的是:

窗体页的程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用C#创建,该文件

B.项目中所有Web窗体页的代码隐藏文件都被编译成文件

C.项目中所有的Web窗体页的代码隐藏文件都被编译成项目动态链接库()文件

D.以上都不正确

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

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

(;;);

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

s=36; while (s);--s;

3:In Object Oriented Programming, how would you describe encapsulation?

conversion of one type of object to another.

runtime resolution of method calls.

exposition of data.

separation of interface and implementation.

4:设有变量说明语句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**

D.有语法错误

5:abstract class BaseClass

{

public virtual void MethodA()

{

eLine("BaseClass");

}

public virtual void MethodB()

{

}

}

class Class1: BaseClass

{

public void MethodA()

{

eLine("Class1");

}

public override void MethodB()

{

}

}

class Class2: Class1

{

new public void MethodB()

{

}

}

class MainClass

{

public static void Main(string[] args)

{

Class2 o = new Class2();

odA();

}

}

请问,此程序输出结果是:

Class

Class Class1

s1

s1 BassClass

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

A.建立Socket连接

B.获得端口号

C.获得IP地址

D.获得主机名

7:

下述程序代码中有语法错误的行是( )。

int i,ia[10],ib[10]; /*第一行*/

for (i=0;i<=9;i++) /*第2行*/

ia[i]=0; /*第3行*/

ib=ia; /*第4行*/

下述程序代码中有语法错误的行是( )。

int i,ia[10],ib[10]; /*第一行*/

for (i=0;i<=9;i++) /*第2行*/

ia[i]=0; /*第3行*/

ib=ia; /*第4行*/

A.第1行

B.第2行

C.第3行

D.第4行

8: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

9:Which of these string definitions will prevent escaping on backslashes in C#?

ng s = #”n Test string”;

ng s = “’n Test string”;

ng s = @”n Test string”;

ng s = “n Test string”;

10: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.越界

11:在软件生命周期中,下列哪个说法是不准确的?

A.软件生命周期分为计划、开发和运行三个阶段

B.在计划阶段要进行问题焉醛和需求分析

C.在开发后期要进行编写代码和软件测试

D.在运行阶段主要是进行软件维护

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

myCallBack(int x)

receive(int num)

ng receive(int x)

D.不确定的