成考院校在线答案
- 2022-09-12 [单选] 37、类Test的定义如下,则下划线处不能填入的是 ( ) 1. 2 . public class Interesting{3. //do sth4. }
- 2022-09-12 [单选] 39、编译并运行下面的程序,产生的结果是( )public class A {int a1=1; int a2; public static void main(String[] args) { int a3=2; A a=new A(); System.out.println("Result="+a.a1+a.a2+a3); }}
- 2022-09-12 [单选] 14、若有如下程序段:int index=1;int foo[]=new int[3];int bar=foo[index];int baz=bar+index;程序的执行结果正确的是( )。
- 2022-09-12 [单选] 39、下列接口声明语句错误的是( )。
- 2022-09-12 [单选] 16、以下程序的运行结果是( )。public class Increment{ public static void main(String args[]) { int a; a = 6; System.out.print(a); System.out.print(a++); System.out.print(a); }}
- 2022-09-12 [单选] 24、编译Java Application源程序文件将产生相应字节码文件,这些文件的扩展名为()。
- 2022-09-12 [单选] 25、下列描述中,不正确的是( )。
- 2022-09-12 [单选] 28、程序:<img alt="image" src="http://wljy.whut.edu.cn:80/uploadfiles/kindeditorAttached/image/20210906/20210906104901_154.png" width="auto" height="auto" style="max-width:100%">上述程序运行后的结果是哪项?()
- 2022-09-12 [单选] 27、下列代码执行完毕后会得到的是( )。int n = 0;System.out.print(++n);System.out.print(n++);System.out.print(n++);
- 2022-09-12 [单选] 15、若有double x=2,y;则表达式y=x+5/2的值是( )