当前位置:首页 > 全部子站 > IT > 思科认证

Java认证模考试题(三)

来源:长理培训发布时间:2017-12-19 10:48:38

 百度广告

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

责编:罗莉

发表评论(共0条评论)
请自觉遵守互联网相关政策法规,评论内容只代表网友观点,发表审核后显示!

国家电网校园招聘考试直播课程通关班

  • 讲师:刘萍萍 / 谢楠
  • 课时:160h
  • 价格 4580

特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关

配套通关班送国网在线题库一套

课程专业名称
讲师
课时
查看课程

国家电网招聘考试录播视频课程

  • 讲师:崔莹莹 / 刘萍萍
  • 课时:180h
  • 价格 3580

特色解密新课程高频考点,免费学习,助力一次通关

配套全套国网视频课程免费学习

课程专业名称
讲师
课时
查看课程
在线题库
面授课程更多>>
图书商城更多>>
在线报名
  • 报考专业:
    *(必填)
  • 姓名:
    *(必填)
  • 手机号码:
    *(必填)
返回顶部