Java认证模考试题(三)
百度广告
Question: 14
A. char args
B. char args
C. String arg
D. String args
Explanation:
Correct Answer: C 14 of 60
Question: 15
A. float f = new float;
B. float f = new float;
C. float f = new float;
D. float f = new float;
E. float f = new float;
Explanation:
Correct Answer: A,B,D,E 15 of 60
Question: 16
Which result of the following expressions equals to the number of the array elements?
B. m.length
C. m.length()+1
D. m.length+1
Explanation:
Correct Answer: B 16 of 60
Question: 17
Which statements are true?
B. args[0] = MyTest
C. args[0] = a
D. args[1]= 'b'
Explanation:
Correct Answer: C 17 of 60
Question: 18
public class Test{
long a = new long[10];
public static void main ( String arg ) {
System.out.println ( a );
}
}
Which statement is true?
B. Output is 0.
C. When compile, some error will occur.
D. When running, some error will occur.
Explanation:
Correct Answer: B 18 of 60 |||
uestion: 19
boolean m = true;
if ( m = false )
System.out.println(False);
else
System.out.println(True);
What is the result of the execution?
B. True
C. None
D. An error will occur when running.
Explanation:
Correct Answer: A 19 of 60
Question: 20
public class Test{
public static void main(String arg){
int i = 5;
do {
System.out.println(i);
} while (--i>5)
System.out.println("finished");
}
}
What will be output after execution?
B. 4
C. 6
D. Finished
E. None
Explanation:
Correct Answer: A,D 20 of 60
编辑推荐:
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>