下列有关算法的描述中错误的是( )。
A:所谓算法是指解题方__而完整的描述 B:算法的基本特征有:可行性、确定性、有穷性和拥有足够的情报等 C:算法的复杂度主要包括时间复杂度和空间复杂度 D:算法的时间复杂度是指执行算法程序所需要的时间
采用面向对象技术开发的应用系统的特点是( )。
A:重用性更强 B:运行速度更快 C:占用存储量小 D:维护更复杂
集合类容纳的对象可以是( )。
A:Boolean B:byte C:Object D:char
软件需求分析阶段的工作,可以分为4个方面:需求获取、需求分析、编写需求分析说明书和( )。
A:阶段性报告 B:需求评审 C:总结 D:都不正确
当使用对现存文件的引用创建FileOutputStxeam(filename,false)时,发生了什么事情 ( )
A:引发异常 B:写入到流中的数据将追加在现存文件之后 C:将用写入到流中的数据替换现存文件 D:文件不发生变化
用HTML文件显示Applet时,下面哪些属性是必不可少的 ( )
A:name, height, width B:code, name C:codebase, height, width D:code, height, width
有如下程序
public class Sun
public static void main(String args[ ])
int x=1,a=0,b=0;
switch(x)
case 0:b++;
case 1:a++;
case 2:
a++;
b++;
System.out.println("a="+a+","+"b="+B)
该程序的输出结果是( )。
A:a=2,b=1 B:a=1,b=1 C:a=1,b=0 D:a=0,b=0
有如下程序
public class Test
int a,b;
Test ( )
a = 100;
b = 200;
Test(int x, int y)
a = x;
b = y;
public static void main(String args[])
Test Obj1 = new Test(12,45);
System.out.println("a = "Obj1.a+" b = "+Ob31.B) ;
Test Obj1 = new Test( );
System.out.println("a = "Obj1.a+" b = "+Obj1.B) ;
程序的运行结果为( )。
A:a=100 b=200
a=12 b=45 B:a=12 b=45
a=100 b=200 C:a=12 b=200
a=100 b=45 D:a=100 b=45
a=12 b=200
有以下程序
public class Sun
public static void main(string args[ ])
int a, b;
for(a=1, b=1; a<=100; a++)
if(b>=10
break;
if (b%3 1)
b+=3;
continue;
System.cut.println(
A:;
执行后的输出结果是( )。A) 101 B:6 C:5 D:4
执行以下的循环后输出的值为( )。
public class Sun
public static void main (String args[ ])
int m=1000, s=0, n=0;
do
n=n+l;
s=s+(int)Math.pow(2,n);
while (s<=m);
System.out.println("n="+n+","+"s="+s);
A:n=9, s=1000 B:n=8, s=1022 C:n=9, s=1022 D:n=8, s=1000