MockExamIII

更新时间:2023-06-04 06:34:16 阅读: 评论:0

MockExamIII
SCJP模拟试题三
此套试题由60道题组成(实际考试为60道题)。
试题由单选题和多选题组成,单选题将提示:Select the most appropriate answer,多选题将提示:Select all correct answers。
答案在最后
Q. 1
Which colour is ud to indicate instance methods in the standard "javadoc" format documentation:
A.blue
B.red
C.purple
D.orange
Select the most appropriate answer.
Q. 2
What is the correct ordering for the import, class and package declarations when found in a single file?
A.package, import, class
B.class, import, package
C.import, package, class
D.package, class, import
Select the most appropriate answer.
Q. 3
Which methods can be legally applied to a string object?
A.equals(String)
B.equals(Object)
C.trim()
D.round()
E.toString()
Select all correct answers.
Q. 4
What is the parameter specification for the public static void main method?
A.String args []
B.String [] args
C.Strings args []
D.String args
Select all correct answers.
Q. 5
What does the zeroth element of the string array pasd to the public static void main method contain?
A.The name of the program
B.The number of arguments
C.The first argument if one is prent
Select the most appropriate answer.
Q. 6
Which of the following are Java keywords?
电话卡销户
A.goto
B.malloc
C.extends
D.FALSE
Select all correct answers
属兔和属马
Q. 7
What will be the result of compiling the following code:
public class Test {
public static void main (String args []) {
int age;
age = age + 1;
System.out.println("The age is " + age);
}清世宗雍正
}
A.Compiles and runs with no output
B.Compiles and runs printing out The age is 1
C.Compiles but generates a runtime error
D.Does not compile
E.Compiles but generates a compile time error
Select the most appropriate answer.
Q. 8
Which of the is the correct format to u to create the literal char value a?
A.‘a’
B."a"
C.new Character(a)
D.黄鹤一去不复返\000a
Select the most appropriate answer.
Q. 9
What is the legal range of a byte integral type?
A.0 - 65, 535
B.(–128) – 127
C.(–32,768) – 32,767 汤池小镇
D.(–256) – 255
Select the most appropriate answer.
Q. 10
Which of the following is illegal:
A.int i = 32;
B.float f = 45.0;
C.double d = 45.0;
Select the most appropriate answer.
羊肉补什么Q. 11
What will be the result of compiling the following code:
public class Test {
static int age;
public static void main (String args []) {
age = age + 1;
System.out.println("The age is " + age);
}
}
A.Compiles and runs with no output
B.Compiles and runs printing out The age is 1
C.Compiles but generates a runtime error
D.Does not compile 写夏景的诗句
E.Compiles but generates a compile time error
Select the most appropriate answer.
Q. 12
大年初五Which of the following are correct?
A.128 >> 1 gives 64
B.128 >>> 1 gives 64

本文发布于:2023-06-04 06:34:16,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/856946.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:组成   道题   单选题   试题   多选题   销户   电话卡
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图