net软件开发业务代表笔试题

广博吧 人气:2.1W

 选择题

net软件开发业务代表笔试题

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

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

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

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

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

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

node

ng

view

3:

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

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行

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

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

mycallback(int x)

receive(int num)

ng receive(int x)

d.不确定的

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

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

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

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

(;;);

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

s=36; while (s);—s;

9:如下程序的运行结果是:

public abstract class a

{

public a()

{

eline(''''a'''');

}

public virtual void fun()

{

eline("()");

}

}

public class b: a

{

public b()

{

eline(''''b'''');

}

public new void fun()

{

eline("()");

}

public static void main()

{

a a = new b();

();

}

}

a.a b ()

b.a b ()

c.b a ()

d.b a ()

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

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

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

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

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

11:class class1

{

public static int count = 0;

static class1()

{

count++;

}

public class1()

{

count++;

}

}

class1 o1 = new class1();

class1 o2 = new class1();

请问,t的值是多少?

a.1

b.2<