1. 下列选项中,( )是 JDK 提供的编译器。

Java_A

Quiz
•
Computers
•
1st Grade
•
Hard

Shiwen Zhang
Used 6+ times
FREE Resource
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
A. java.exe
B. javac.exe
C. javaw.exe
D. javap.exe
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
下列叙述错误的是( )。
A. System 是关键字。
B. _class 可以作为标识符。
C. Char 型字符在 Unicode 表中的位置范围为 0-65535。
D. 对于“int a[] = new int[5];”,a.length 的值是 5。
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
3. 对于 int[][] a = {{1,2},{1,2,3},{1,2,3,4}}; 下列叙述错误的是( )
A. a.length 的值是3
B. a[2].length 的值是 4。
C. a[0][1]的值是 1。
D. a[2][0]的值是 1。
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
4. 对于“int n = 5678;”,表达式的值为 6 的是( )。
A. n%10
B. n/10%10
C. n/100%10
D. n/1000%10
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
5. 对于 Test.java,下列叙述正确的是( )。
public class Test{
public static void main(String[] args){
boolean boo = false;
if(boo == true){
System.out.print(“Hello”);
System.out.print(“你好”); }
else{
System.out.print(“ok”);
System.out.print(“yes”); } } }
A. 出现编译错误。
B. 程序的输出结果是 hello 你好。
C. 程序的输出结果是 ok。
D. 程序的输出结果是 okyes。
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
6. 下列叙述正确的是( )
A.成员变量有默认值。
B. this 可以出现在 static 方法中。
C. 类中的实例方法可以用类名调用。
D. 局部变量也可以用权限修饰符 public、protected、private 修饰。
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
7. 对于下列代码,叙述正确的是( )。
public class Test{
public static void main(String[] args){
Tom cat = new Tom(); } }
class Tom{
void Tom(){
System.out.println(“ok”); }
Tom(){
System.out.println(“你好”); } }
A. 程序运行时输出:ok。
B. 有两个构造方法。
C. 有编译错误。
D. 程序运行时输出:你好。
Create a free account and access millions of resources
Similar Resources on Quizizz
24 questions
Google認識知多少

Quiz
•
1st - 5th Grade
24 questions
中二A下學期統測溫習QUIZIZZ

Quiz
•
1st Grade
30 questions
305資訊安全與健康30題

Quiz
•
1st - 5th Grade
25 questions
第1章 資訊科技導論測驗

Quiz
•
1st Grade
26 questions
精灵乐章 2

Quiz
•
1st - 5th Grade
30 questions
Quizizz資訊安全與健康30題

Quiz
•
1st - 5th Grade
25 questions
8下排序段考

Quiz
•
1st - 12th Grade
30 questions
Simple Input

Quiz
•
1st Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade