单选题阅读下面程序 public class Test3 public static void main(String[] args) int x=3,y=4,z=5; String s="xyz": System.out.println(s+x+y+z); 程序运行的结果是
单选题下列代码的执行结果是( )。 public class Test { public static void main ( String args[]) { float f=5.0f; int i=4; System.out.println((f++) *(--i)); } }
单选题以下程序试图把从终端输入的字符输出到名为abc.txt的文件中,直到从终端读入字符#时结束输入和输出操作,但程序有错,出错的原因是{{U}}
{{/U}}。 #include<stdio.h>
main() { FILE *fout: char
ch: fout=fopen('abc.txt','w');
ch=fgetc(stdin); while(ch!='#') {
fputc(ch,fout); ch=fgetc(stdin);
} fclose(fout); }
A.函数fopen调用形式错误
B.输入文件没有关闭
C.函数fgetc调用形式错误
D.文件指针stdin没有定义
单选题下列关于类的说法中不正确的是( )。
单选题对于下面语句的说法,不正确的是______。
Thread thrObj=new Thread();
单选题在oneMethod( )方法运行正常的情况下,程序段将输出( )。 public void test( ) try oneMethod( ); System.out.println ("condition 1"); catch (ArratlndexOutOfBoundException e) System.out.println("condition2"): catch (Exception e) System.out.println("condition 3"); finnally System.out.println("finally"): A.condition 1B.condition2C.condition 3D.condition 1 finally
单选题Applet也是一个AWT组件,因而也具有一般AWT组件的图形绘制功能,______方法用于进行绘图的具体操作。 A.Paint() B.Graphics() C.Line() D.Draw()
单选题能将程序补充完整的选项是 class Person private int a; public int change(int m)return m; public class Teacher extends Person public int b; public static void main(String arg[]) Person p=new Person(); Teacher t=new Teacher(); int i; ______ A) i=m B) i=b C) i=p.a D) i=p.change(50)
单选题如图所示二叉树的中序遍历结果为()。
单选题对于已经被定义过的可能抛出异常的语句,在编译时______。
单选题按层次次序将一棵有n-个结点的完全二叉树的所有结点从l~n编号,当i≤n/2时,编号为i的结点的左子树的编号是( )。
单选题有以下程序: void main() int a[3][3],*p,i; p=&a[0][0]; for(i=0;i<9;i++) p[i]=i; for(i=0;i<3;i++)printf("%d",a[1][i]); 程序运行后输出的结果是( )。 A.012 B.123 C.234 D.345
单选题Java语言中使用的字符是______字符集。 ( )
单选题线程交互中不提倡使用的方法是
A.wait()
B.notify()
C.stop()
D.notifyAll()
单选题能对读入字节数据进行Java基本数据类型判断过滤的是( )。
单选题下列标识符(名字)命名原则中,正确的是( )。
单选题设计程序时,应采纳的原则之一是______。 A.程序的结构应有助于读者的理解 B.不限制goto语句的使用 C.减少或取消注释行 D.程序越短越好
单选题下列链表中,其逻辑结构属于非线性结构的是______。
单选题下列( )选项是main( )方法的返回值类型。
单选题下列选项中,能正确定义数组的语句是( )。 A.int num[0..2008]; B.int num[], C.int N=2008; int num[N]; D.#define N 2008 int num[N];