单选题某二叉树有5个度为2的结点以及3个度为1的结点,则该二叉树中共有结点数为______。 A.11 B.12 C.13 D.14
单选题Java中的字符变量在内存中占位(bit)为______。 A.4 B.8 C.16 D.24
单选题下面程序段的输出结果是______。 public class Test public static void main(String args[]) int x,y; x=(int)Math.sqrt(5)/2+(int)Math.random()*5/2; y=(int)Math.sqrt(3)/2+(int)Math.random()*3/2; if(x>y) System.out.println("x>y"); elseif(x= =y) System.Out.println("x=y"); else System.out.println("x<y"); A.x>y B.x=y C.x<y D.编译错误
单选题当处理的数据量很多,或向文件写很多次少量的数据,一般使用( )流。
单选题下列程序执行后,chl的值是( )。
public class Testccc{
public static void main(Stringargsr[ ])
{
char chl=''A'',ch2=''T'';
if(chi+5<ch2)++ch1;
System.out.println(ch1);
}
}
单选题阅读下列代码后 public class Person int arr[]=new int[10]; public static void main(String args[]) System.out.println(arr[]); 正确的说法是( )。
单选题对于下面的程序: #include<stdio.h> #include<string.h> char *scmp(char*s1,char*s2) if(strcmp(s1,s2)<0)return(s1); else return(s2); void main() int i;char string[20],str[3] [20]; for(i=0;i<3;i++)gets(str[i]); strcpy(string,scmp(str[0],str[1])); strcpy(string,scmp(string,str[2])); printf("%s/n",string); 若运行时依次输入:abcd、abba和abc三个字符串,则输出结果为( )。 A.abcd B.abba C.abc D.abca
单选题设x=1,y=2,z=3,则表达式y+=z--/++x执行后,y的值是( )。
单选题下面代码段的输出是( )。 if (5
单选题要得到某目录下的所有文件名,在下列代码的下划线处应填入的内容是(两个下划线的填写内容相同) ______pathName=new______(args[0]); String[]fileNames=pathname.list();
单选题在-棵二叉树的先序遍历、中序遍历、后序遍历所产生的序列中,所有叶子结点的先后顺序( )。
单选题下列程序输出结果为( )。public class test public static void main(String args[]) int a=0; outer: for(int i=0;i<2;i++) for(int j=0;j<2;j++) if(j>i) continue outer; a++; System. out. println(a);
单选题设计程序时,应采纳的原则之一是______。
单选题设有定义int i=123;long j=456;,下列赋值不正确的是( )。
单选题Applet类的直接父类是( )*
单选题现在有负无限值双精度浮点数x和负有限值单精度浮点数y,以下关于x%y的说法中,______是正确的。
单选题下列______是回车字符的正确转义字符。
单选题下面程序的输出结果是______。
public class exl
{
public static void main(String[] args)
{
for(int cnt=0;cnt<10,;cnt++)
{
if(cnt==5)
break;
System.out.print(cnt);
}
}
}
单选题表达式:10!=9的值是( )。 A.true B.非零值 C.0 D.1
单选题下列各项关于Applet(小应用程序)的描述中错误的是( )。
