听力原文:W: Excuse me, can you tell me where is the Staff's Association meeting held?
M: It was planned to hold in Room 110, but has changed to the auditorium for more space.
Where is the Association meeting held?
A.In Room 110.
B.In the meeting room.
C.In the auditorium.
D.In the staff room.
第1题
下面是一个Java的应用程序,其输出结果是
public class Testll{
public static void main (String args[])
{char c='i';
for(int n;6;n<11;m + +)
{ if(n = =8)continue;
System.out.print(c + +);
A.ij
B.ijk
C. ijkl
D.ijklm
第2题
第3题
public class A { public void draw(){System.out.println(“NO?”)}};} class B extends A { public void draw(){ System.out.println(“YES!”)};} A a=new B(); a.draw(); 输出结果是__________,最后两条语句程序体现了java的__________性质。
第4题
应用程序Test.java 的源程序如下,在命令行键入: java Test aaa bb c ,则输出的结果是 () 。
public class Test
{ public static void main(String args[])
{ int k1=args.length;
int k2=args[1].length();
System.out.print(k1+" "+k2); }
}
A.3 2
B.1 2
C.1 3
D.3 3
第5题
给定Java代码如下所示,则编译运行后,输出结果是()。 class Parent { public void count() { System.out.println(10%3); } } public class Child extends Parent{ public void count() { System.out.println(10/3); } public static void main(String args[]) { Parent p = new Child(); p.count(); } }
A、1
B、1.0
C、3
D、3.3333333333333335
第6题
下列程序的输出结果是()。 public class c3 { public static void main(String args[]) { char c1='B'/c2='c'; if(c1+1<c2) ++c1; System.out.println(c1); } }
A.B
B.b
C.C
D.c
第7题
【单选题】在JAVA中,以下程序的输出结果是 class Tetromino{ public void print(){ System.out.println(“打印四个格子所在的坐标”); } } class TetrominoT extends Tetromino { public void print(){ System.out.println(“打印TetrominoT”); } } class Test1 { public static void main(String[] args){ Tetromino t = new TetrominoT(); t.print(); } }
A、打印四个格子所在的坐标
B、打印TetrominoT
C、打印四个格子所在的坐标 打印TetrominoT
D、以上都不对
第8题
下列程序的输出结果是()。 public class Test { public static void main(String[] args) { char a1 = 'B', a2 = 'c'; if(a1+1<a2) ++a1; System.out.println(a1); } }
A.B
B.b
C.C
D.c
第9题
下列程序中构造了一个set并且调用其方法add(),输出结果是()。import java.util.*; public class T1_2 { public int hashCode() { return 1; } public boolean equals(Object b) { return true; } public static void main(String args[]) { Set set = new HashSet(); set.add(new T1_2()); set.add(new String("ABC")); set.add(new T1_2()); System.out.println(set.size()); } }
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!