单选题有以下程序: void main() int a,b,d=25; a=d/10%9; b=a&&(-1); printf("%d,%d/n",a,b); 程序运行后输出的结果是( )。 A.6,1 B.2,1 C.6,0 D.2,0
单选题下列不属于软件工程过程的基本活动的是( )。 A) 软件规格说明 B) 软件开发 C) 软件确认 D) 软件需求分析
单选题阅读下面代码 public class Test2005 public static void main(String args[]) String s="Test"; switch(s) case"Java":System.out.print("Java"); break; case"Language":System.out.print("Language"): break; case"Test":System.out.print("Test"); break; 其运行结果是
单选题构造方法( )被调用。
单选题数据报通信协议UDP把每个传输的数据大小控制在下列哪一项之内
单选题下列不属于Applet编写步骤的是( )。 A.引入需要的类和包 B.定义一个Applet类的子类 C.实现Applet类的某些方法 D.加密Applet程序
单选题下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是
public class FindKeyWords{
public static void main(sring[] args){
sting text=
“ An array is a data structur that stores a collection of”
+ “values of the same type . You access each individual value”
+ “through an integer index . For example,if a is an array”
+ “of inergers, then a[i] is the ith integer in the array.”;
Int arrayCount =0;
Int idex = -1;
Sting arrarStr =”array”;
Index = text.indexof(arrayStr);
While(index 0) {
++arrayCount;
Index += arrayStr.length();
Index = text.indexof(arrayStr,index);
}
System.out.println
(“the text contains” + arrayCount + “arrays”);
}
}
单选题以下不属Java Application应用程序编写和执行步骤的是( )。
单选题程序的3种基本控制结构是
单选题如下程序的输出结果是( )。
public class Test
{
void printValue(int m)
{
do {
System.out.println("The value is"+m);
}
while( --m>10)
}
public static void main(String args[])
{
int i=10;
Test t=new Test();
t.printValue(i);
}
}
单选题使用如下哪个保留字可以使只有在定义该类的包中的其他类才能访问该类?
单选题下列叙述中正确的是( )。 A) 线性表是线性结构 B) 栈与队列是非线性结构 C) 线性链表是非线性结构 D) 二叉树是线性结构
单选题下列的哪个程序段可能导致错误?
单选题数据库系统的基础是( )。
单选题下面程序段的输出结果为 public class Test
{ public static void main(String
args[]) {
boolean a,b,c; a=(3<5);
b=(a==true);
System.out.printin( "a="+a+"b="+b) ;
c-(b==false);
System.out.println(b="+b+"e="+c) ; }
}
A. a=true b=false b=true c=false
B. a=true b=false b=true c=true
C. a=true b=true b=true c=false
D. a=false b=false b=true c=false
单选题将较长的数据类型转换为较短的整数类型,要进行( )。
单选题用AWT组件实现单选按钮功能,需要使用______组件? ( )
单选题下列语句中所使用的布局管理器,当改变容器大小时,组件大小不会随着一起改变的是( )。
单选题在E-R图中,用来表示实体联系的图形是______。
单选题resume( )方法恢复哪些线程的执行?
