这是用户在 2024-6-23 12:52 为 https://app.immersivetranslate.com/word/ 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?

SHUJ
舒杰

1.The Java program is executed from(A)
1.Java程序从(A)执行

A the main method
一、主要方法

B any method
B 任意方法

C the first method in main class
C 主类中的第一种方法

D the last method in main class
D 主类中的最后一个方法

2. Every Java program must have at least one_(A)__
2. 每个 Java 程序必须至少具有 one_(A)__

A class
一类

B function
B 函数

instruction
指令

D bytecode
D 字节码

З.You can not use for developing Java programs (D).
З.你不能用于开发Java程序(D)。

A NetBeans
B Eclipse
B 日食

с TextPad
с 文本板

D MySQL
D MySQL的

4.You compile a Java program into a__ (B)
4.将Java程序编译成a__(B)

A.java file 
A.java 文件

B.class file
B.class 文件

C.obj file
C.obj 文件

D.exe file
D.exe 文件

You must first.before you can compile and run Java prgrams .(A)
在编译和运行 Java prgrams 之前,您必须先编译并运行 Java prgrams。(一)

A install and configure the JDK
安装和配置 JDK

B.regist an Oracle member
B.regist,Oracle 成员

C.buyabook
C.buyabook(布亚书)

D.uinstal iDEs of other programming languages
D.uinstal iDEs of other programming languages

6.(A) is to develop ciltnside appipaionoitis
6.(A)是发展为ciltnside appipaionoitis的

A Java SE
BJava EE
BJava EE系列

сJava ME
D Java Applet
D Java 小程序

7.Software contains the.that tel a comuterzed device what to do.(A)
7.软件包含:通信设备要做什么。

A.instructions
A.使用说明

B.languages
B.语言

C.working flow
C.工作流程

D.Java
D.爪哇

To run a Java class from the command line, use the.(A)
要从命令行运行 Java 类,请使用 。(一)

command.
命令。

A java
Java

B javac
B javac

C javap
C javap

D javar
D javar

9.The minimum storage unit in a computer is a (A) 
9.计算机的最小存储单元为(A)

A.byte
A.字节

B.bit
B.位

line
线

D.memory
D.记忆

10. The source file of Java must (B) .
10. Java 的源文件必须 (B) .

A.end with the extension .txt
A.以扩展名结束.txt

B.have the same exact nameas; the public class name.
B.具有相同的确切名称;公共类名称。

C.have at least one statement
C.至少有一个语句

D.runing at least once before compiing
D.编译前至少运行一次

The symbols (A) appear together in a conditional expression.
符号 (A) 一起出现在条件表达式中。

?and:
?和:

B.>and?
B.>和?

C.!and=
C.!and=

D.<and>
12. A variable (A)_before it can be assigned a value .
12.一个变量(A)_before可以给它赋值。

A.must be declared
A.必须申报

B.issettonull
C.has no scope
C.没有范围

D.will be asiigned to zero
D.将升至零

13. An escape sequence consists of_(A)_ followed by a character or a combination of digits.
13. 转义序列由 of_(A)_ 后跟一个字符或数字组合组成。

a backslash (\)
反斜杠 (\)

B.a slash(/)
B.a 斜杠(/)

C.a double quotes (")
C.a 双引号 (“)

D.a single quotes (')
D.a 单引号 (')

14. Java uses (B)to refer to the standard input device.
14. Java 使用 (B) 来指代标准输入设备。

A.System.out
A.系统输出

B.system.in
C.System.keyboard
C.System.键盘

D.System.moniter
15.An( A)is a construct that enables a program to specify alternative paths of execution.
15.An( A) 是一种结构,它使程序能够指定替代执行路径。

A.if statement
A.if 语句

B.switch statement
B.switch 语句

C.for statement
C.for 语句

D.while statement
D.while 语句

16.( A)is the process of finding and fixing errors in a program.
16.( A)是查找和修复程序中错误的过程。

A.Debugging
A.调试

B.Running
B.跑步

C.Comping
C.Comping(英语:Comping)

D.Testing
D.测试

17. In the following identifiers,__(D) is invalid.
17. 在以下标识符中,__(D)无效。

myCar
我的车

B._long
C.at 3_ rooms
C.at 3_ 间

D.continue
D.继续

18.In Java,floating-point literals have a default type of_B
18.In Java 中,浮点文字具有默认类型of_B_

int
B.double
B.双人间

C.char
C.字符

D.float
D.浮点

19. The Scanner class is in the _ A___ package.
19. Scanner 类位于 _ A___ 包中。

A.java.util
B.java.io
C.java.lang
D.java.iostream
20. Characters can be compared based on their__(A) using the relational operators.
20. 可以使用关系运算符根据 their__(A) 比较字符。

Unicode
统一码

B.ASCII
B.ASCII的

C.GBK
C.GBK公司

D.utf-8
D.utf-8型

21.(D) is not one of the selection statements.
21.(D)不是选择声明之一。

A.if-else statement
A.if-else 语句

B.if statement
B.if 语句

C.switch-case statement
C.switch-case 语句

D.for-each statement
D.for-each 语句

22.In switch-case statement, once a case is matched, the statements starting from the matched case are executed until(A).
22.In switch-case 语句中,一旦匹配了案例,从匹配的 case 开始的语句将执行到 (A)。

a break statement
中断语句

B.a continue statement
B.a 继续声明

C.the end of the case statement
C.案情陈述的结尾

D.the end of the else statement
D.else 语句的结尾

23. You can use_(A)_to comment on one line in Java.
23. 您可以在 Java 中对一行进行 use_(A)_to 注释。

A.//
一个。//

B./* */
C./** *1
C./** *1

D.**

 You can use(A)to obtain a random double value between 0.0 and 1.0,excluding 1.0.
您可以使用(A)获得0.0和1.0之间的随机双精度值,不包括1.0。

A.Math.random()
A.数学.random()

B.Math.rand()
B.Math.rand()

C.Math.srand()
C.Math.srand()

D.Math.round()
D.Math.round()

25.An (A) is a loop statement that executes infiniely.
25.(A)是一个无限执行的循环语句。

A.infinite loop
A.无限循环


B.executable loop
B.可执行循环

C.endless loop
C.无限循环

D.inner nested loop
D.内部嵌套循环

26.The arguments are passed(A)to parameters when invoking a method.
26.调用方法时,参数将传递(A)到参数。

A.by value
A.by 值

B.byname
B.按姓名

C.by reference
C.by 参考资料

D.by handle
D.by 手柄

 When passing an array to a method,_A_is passed to the method.
将数组传递给方法时,_A_is传递给该方法。

the reference of the array
数组的引用

B.the name of the array
B.数组的名称

C.a collection of the elements of the array
C.数组元素的集合

D.a collection of the indexes of the array
D.数组索引的集合

28.The(A)class is used to obtain file properties and manipulate files. It does not contain the methods for creating a file or for reading/writing data from/to a file.
28.(A)类用于获取文件属性和操作文件。它不包含用于创建文件或从文件读取/写入数据的方法。

File
文件

B.FileProperty
C.Folder
C.文件夹

D.Property
D.属性

29.When a method returns an array,_(A) is returned.
29.当方法返回数组时,返回_(A)。

A.the reference of the array
A.数组的参考

B.the name of the array
B.数组的名称

C.a collection of the elements of the array
C.数组元素的集合

D.a collection of the indexes of the array
D.数组索引的集合

You can create an array by using the (A) Operator.
您可以使用 (A) 运算符创建数组。

A.new
A.新品

B.set
B.设置

C.this
C.这个

D.assignment (=)
D.赋值 (=)

31. The_B_ modifier makes methods and data fields accessible only from within its own class.
31. The_B_修饰符使方法和数据字段只能从其自己的类中访问。

public
公共

B.private
B.私人

C.protected
C.受保护

D.package
D.包装

32. An object's data and methods can be accessed through the__(A) operator via the object's reference variable. 
32. 对象的数据和方法可以通过 the__(A) 运算符通过对象的参考变量访问。

A.dot(.)
A.点(.)

B.comma (,)
B.逗号 (,)

C.single quotes (')
C.单引号 (')


D.backlash (\)
D.背隙 (\)

 Passing an object to a method is to pass__(A).
将对象传递给方法就是 pass__(A)。

the reference of the object
对象的引用

B.a copу of the object
B.a copу 的对象

C.the name of the object
C.对象名称

D.the object itself
D.对象本身

34. An object is_A_of a class.
34. 类is_A_of对象。

an instance
实例

B.a child
B.a儿童

C.a copy
C.复印件

D.an exception
D.例外

35. A static variable is (A).
35. 静态变量是(A)。

A.shared by all objects of the class
A.由类的所有对象共享

B.owned by only one object of the classO 
B.仅由类 O 中的一个对象拥有

C.a variable defined in main class
C.主类中定义的变量

D.a field of the class, which defined as static
D.类的字段,定义为静态

 All parameters are passed to methods using ___(A) .
所有参数都使用 ___(A) 传递给方法。

A pass-by-value
传递值

B pass-by-name
B 通过名称

C pass-by-reference
C 逐个引用传递

D pass-by-param
D 逐个传递参数

37._A)is the technique to prevent direct modifications of data fields in a class.
37._A)是防止直接修改类中数据字段的技术。

A Encapsulation
封装

B Abstraction
B 抽象

C Instantiation
C 实例化

D Modularization
D 模块化

38. A static method (A) of the class.
38.类的静态方法(A)。

A cannot access instance members
A 无法访问实例成员

B cannot access static members
B 无法访问静态成员

C can access any members
C 可以访问任何成员

D can only access static fields
D 只能访问静态字段

39. An abstract method_(A)_.
39. 摘要method_(A)_。

A cannot be contained in a nonabstract class
A 不能包含在非抽象类中

B cannot be contained in an interface
B 不能包含在接口中

C.can be contained in a concrete class
C.可以包含在具体类中

D can be announced as private
D 可以宣布为私有

40. you can use(A)to prevent classes from being extended.
40. 您可以使用(A)来防止课程扩展。

A final keyword
最后一个关键字

B const keyword
B const 关键字

C multiple inheritance
C 多重继承

D annotation
D 注释

41.You can use the(A)modifier to prevent the fields and methods from being accessed by nonsubclasses from a different  package.
41.您可以使用 (A) 修饰符来防止来自不同包的非子类访问字段和方法。

A protected
受保护的

B private
B 私人

C public
C 公共

D package
D封装

42. A(An) (A) cannot be used to create objects. 
42. A(An) (A) 不能用于创建对象。

A abstract class
抽象类

B superclass
B 超类

C subclass
C 子类

D String class
D 字符串类

43. A class can implement multiple_(A)
43. 一个班级可以实施multiple_(A)

A interfaces
A 接口

B superclasses
B 超类

C abstract classes
C 抽象类

D data types
D 数据类型

44. An interface can extend__A . 
44. 接口可以extend__A。

A one or more interfaces
一个或多个接口

B nonabstract interfaces
B 非抽象接口

C one or more classes
C 一个或多个类

D only one class
D 仅一类

45.If a static method defined in the superclass is redefined in a subclass, the method defined in the superclass is_A__.A hidden
45.如果在子类中重新定义了在超类中定义的静态方法,则在超类中定义的方法is_A__。一个隐藏的

B overridden
B 已覆盖

C overloadden
C 重载

D inherited
D 继承

46.( A )means that a variable of a supertype can refer to a subtype object.
46.( A )表示超类型的变量可以引用子类型的对象。

A Polymorphism
多态性

B Inheritance
B 继承

C Abstraction
C 抽象

D Encapsulation
D 封装

47. In general,_(A) relationships should be modeled using inheritance.
47. 一般而言,_(A)关系应使用继承来建模。

A is-a
一个是-一个

B act-as
B 行为

C have-more
C 有更多

D singleton
D 单例

48. If a subclass of an abstract superclass does not implement all the abstract methods, the subclass must be defined as__(A)__. 
48. 如果抽象超类的子类没有实现所有抽象方法,则必须定义该子类as__(A)__。

A abstract
摘要

B static
B 静态

C final
C决赛

D virtual
D 虚拟

49. A class can extend (A)
49. 一个类可以扩展 (A)

A one superclass
一个超类

B one interface
B 一个接口

C one enum
C 一个枚举

D multiple subclasses
D 多个子类

50. One object reference can be typecast into another object reference. This is called_(A)_.
50. 一个对象引用可以类型转换为另一个对象引用。这是called_(A)_。

A casting object
铸造对象

B redefining object
B 重新定义对象

C inheriting object
C 继承对象

D overloading object
D 重载对象

1.Every Java program must have at least one_ [275 ]
1.每个Java程序必须至少有one_ [275 ]

A class
一类

B function
B 函数

C instruction
C指令

D bytecode
D 字节码

2..The compiled Java programs are executed by the
2..编译后的 Java 程序由

A Java Virtual Machine
Java 虚拟机

B Java Development Toolkit
B Java 开发工具包

C operating system
C 操作系统

D integrated development environment
D 集成开发环境

3.You can not use for developing Java programs. [2j]
3.不能用于开发Java程序。[2j]

A NetBeans
B Eclipse
B 日食

C TextPad
C 文本板

D MySQL
D MySQL的

4. Java programs can be run from a Web browser. Such programs are called.0
4. Java 程序可以从 Web 浏览器运行。此类程序称为。

A applets
小程序

B applications
B 应用

C agents D HTPML
C 代理 D HTPML

5.Java is a_ -
5.Java是a_ -

A.human
A.人类

mane language
Mane语言

C ssembly languageO
C ssembly languageO

D high-level language
D 高级语言

6.The Java program is executed from __
6.Java程序从__执行

A the main method
一、主要方法

B any method
B 任意方法

C the first method in main class
C 主类中的第一种方法

D the last method in main class
D 主类中的最后一个方法

7 Software contains the_ that tell a computerized device what to do.
7 软件包含告诉计算机化设备该做什么的the_。

A instructions
A 说明

B languages
B 语言

 с working flow
с 工作流程

 D Java
D 爪哇

8.The while loop and for loop are calledbecauseted.
8.while 循环和 for 循环被调用becauseted。

  A pretest loops
预测试循环

B posttest loops
B 后测循环

C infinite loops
C 无限循环

  D basic loops
D 基本循环

9.The increment operator (++) and the decrement operator (一-) increment or decrementa variable by___.[2分]
9.递增运算符 (++) 和递减运算符 (一-) 递增或递减变量 by___。[2分]

A0
B1
 C a given value
C 给定值

 D a random value
D 为随机值

14. A__ is a collection of statements bound by opening and closing braces.[2分]
14. A__ 是由左大括号和右大括号绑定的语句的集合。[2分]

 A block
一个区块

B statement
B 语句

C flow
C流

 D variable
D 变量

15. The part of the loop that contains the statements to be repeated is called_ [2分]
15. 包含要重复的语句的循环部分called_ [2分]

 A the loop body
A 环体

 B the loop definition
B 循环定义

 C an iteration of the loop ,
C 循环的迭代,

D the loop condition
D 循环条件

16. You can convert a value from one type to another by_ -[2分]
16. 您可以将值从一种类型转换为另一种类型by_ -[2分]

 A casting
演员表

B import
B 导入

 C Convert class
C Convert 类

 D Assignment operators
D 赋值运算符

17. Integer arithmetic () yields
17. 整数算术 () 产生

 A an integer result
整数结果

 B a floating-point result
B 浮点结果

 C a boolean result
C 布尔结果

D an integer result or a floating-point result
D 整数结果或浮点结果

18 are names for naming elements in a program.[2分]
18 是程序中命名元素的名称。[2分]

 A ldentifiers
标识符

 B Variables
B 变量

 C Constants
C 常量

 D Classes
D类

19. suppose x is assigned to 1 and y is also assigned to 1, the value of expression "x-y"is .[2分] 
19. 假设 x 赋给 1,y 也赋给 1,表达式 “x-y” 的值为 。[2分]

A false
一个 假

 B true
B 真

C1
 D random value except 0
除 0 之外的 D 随机值

20. In Java, floating-point literals have a default type of ___ [2/]
20. 在 Java 中,浮点文字的默认类型为 ___ [2/]

Aint
不是

 B double
B双人床房

 C char
C 字符

 D float
D浮子

21. The operators in expressions are evaluated in the order determined by the following rules except ___ [2/]O 
21. 表达式中的运算符按以下规则确定的顺序计算,但 ___ [2/]O 除外

A parentheses
括号

 B operator precedence
B 运算符优先级

с operator associativity
С 算子关联性

 D operator appearance
D 操作员外观

22. You can use the class to create an object to read input from the standard input device.[2G]
22. 您可以使用该类创建一个对象,以便从标准输入设备读取输入。[2克]

 A Scanner
扫描仪

B Next
B 下一页

C Reader
C 阅读器

 D Scanf
D 扫描

23. Java uses - to refer to the standard input device.[2J]
23. Java 使用 - 指标准输入设备。[2J]

A System. out
一个系统。外

 B System.in
乙 System.in

C System. keyboard
C 系统。键盘

 D System. moniter
D 系统。莫尼特

24. You can use to obtain a random double value between 0.0 and 1.0, excluding 1.0.[2G]
24. 您可以使用 0.0 和 1.0 之间的随机双精度值,不包括 1.0。[2克]

A Math.random()
一个 Math.random()

 B Math.rand()
B 数学.rand()

 C Math .srand()
C 数学 .srand()

 D Math.round()
D 数学回合()

25. The returns true if two strings are equal, and false if they are not equal.[2]
25. 如果两个字符串相等,则返回 true,如果它们不相等,则返回 false。[2]


 A equals method
等于方法

 B substring method
B 子字符串方法

 Ccompare To method
Ccompare To 方法

 D concat method
D concat 方法

26. The clause is always executed regardless whether an exception occurred or not.[2]
26. 无论是否发生异常,该子句始终被执行[2]。

 A finally
最后

Btry
布特里

 C catch
C 捕获

27. The following intructions to overading methods  are true except__ (2分]
27. 以下对过度adading方法的要点是正确的except__ (2分)

A Overreading methods can make programs cleaner and more readable
A Overreading 方法可以使程序更清晰、更易读

 B Overloaded methods must haveprograms clearer and more readable. dffrert parameter lits.
B 重载方法必须使程序更清晰、更易读。dffrert 参数 lits。

C OverloadedI methods must havediffret return types.
C OverloadedI 方法必须具有不同的返回类型。

 D Overloaded1 methods must have a samename.
D 重载 1 方法必须具有相同的名称。

28. Ovenloading methods enables you to, define the methods__ 
28. 烤箱加载方法使您能够定义methods__

A with the same name as long as their signatures are differente
A具有相同的名称,只要它们的签名不同

B with the same name as long astheir signatures are same
B同名,只要签名相同

C with the differente names as long astheir Signatures are difteо
C,只要它们的签名不同,就可以使用不同的名称

 D with the differente  names as long as their" signatures are same考生答案: B
D与不同的名称,只要他们的“签名相同”考生答案: B

29. The arguments are passed,- to prametes when nvking a method [24]1о 
29. 参数在 nvking 方法时传递给 prametes [24]1о

A by value
A 按值

Bbyname 
Bbyname(比名字酒店)

C by reference
C 引用

 D by handle
D 按手柄

30. The class is used to read text from a character-input stream, buffering characters SO as to provide for the efficient reading of characters, arrays, and strings.[2%]
30. 该类用于从字符输入流中读取文本,缓冲字符,以便有效地读取字符、数组和字符串。[2%]

 A FileReader
文件阅读器

B FileWriter
B 文件编写器

 C BufferedReader
 D BufferedWriter
D 缓冲写入器

31. The behavior of an object (also known as its actions) is defined by ____ 
31. 对象的行为(也称为其行为)由 ____ 定义

A methods
A 方法

B fields
B 字段

 C constants
C 常量

 D variables
D 变量

32. A__ defines the properties and behaviors for objects.[2/)]
32. A__定义对象的属性和行为。[2/)]

A class
一类

 B package
B包

 C Java file
C Java 文件

D function
D 函数

33. A static method of the class.[2)]
33. 类的静态方法[2]]

 A cannot access instance members
A 无法访问实例成员

 B cannot access static members
B 无法访问静态成员

C can access any members
C 可以访问任何成员

D can only access static fields
D 只能访问静态字段

34. An object data and methods can be accessed through the___ operator via the object&apos;s reference variable.[2分]
34. 可以通过the___运算符通过对象的参考变量访问对象数据和方法。[2分]

 A dot()
一个点()

 B comma ()
B 逗号 ()

 C single quotes ()
C 单引号 ()

 D backlashの)
D反冲の)

35. You can provide a  to enable clients to modify the data.[2分]
35. 您可以提供一个,使客户端能够修改数据。[2分]

 A getter method
吸气剂法

 B setter method
B setter 方法

C static method
C 静态法

 D final method
D 最终方法

36. The state of an object (also known as its properties or ttributes) is represented by __ .[2分]
36. 对象的状态(也称为其属性或属性)用 __ 表示。[2分]

A fields
A 字段

 B methods
B 方法

C classes
C 类

 D constants
D 常量

37  Its better to invoke static methods by using
37 最好使用

A ClassName. method 
一个 ClassName。方法

B ObjectName method
B ObjectName 方法

C PackageName method
C PackageName 方法

D ProjectName method
D ProjectName 方法

38. You can use the modifier for classes, methods, and data fields to denote that they can be accessed from many other classes.[2/]
38. 您可以使用类、方法和数据字段的修饰符来表示可以从许多其他类访问它们。[2/]

A public
一个公共

B protected
B 受保护

C private
C 私有

D package
D封装

39. To override a method, the method must be defined in the subclass using__ as in its superclass.[2]
39. 要覆盖方法,必须在子类using__中定义该方法,就像在其超类中一样。[2]

 A the same signature and the same return type
相同的签名和相同的返回类型

 B the same name and differeent return type
B 相同名称和不同的返回类型

 C the same signature and different return type
C 相同的签名和不同的返回类型

D the same name and different parameter list
D、相同名称、不同参数列表

40. You can use to test whether an object is an instance of a class.[2/)]
40. 你可以用来测试一个对象是否是一个类的实例。

A obj instanceof AClass
AClass 的 obj 实例

 B obj is AClass
B obj 是 AClass

C Class is obj
C 类是 obj

41Object-oriented programing allows you to allows you to define
41面向对象编程允许您定义

A inheritance
继承

B abstraction
B 抽象

C encapsulation
C 封装

D polymorphism
D 多态性

42 Every classs in Java is desecended from__ .2t1
42 Java 中的每个类都被亵渎from__ .2t1

 A the java lang. Object class
A java lang.对象类

 B the java lang. Null class
B java lang。Null 类

C the java lang .Base class
C java lang .基类

D the java. lang .Super class
D java。朗。超级班

43. The keyword super can be used_ .241
43.关键字super可以used_.241

 A to call a sperclass consructor
A 调用 sperclass 构造函数

B to call static spercla methods
B 调用静态 spercla 方法

 C to call subclass members
C 调用子类成员

D to define a new method in a sperclss
D 在 sperclss 中定义新方法

44. An is a class-like construct that contains only costants and absract metos.(21
44. An 是一个类结构,只包含 costants 和 absract metos。(21

 A interface
接口

B abstract class
B 抽象类

 C enum
C 枚举

D array
D 阵列

45. You can use to invoke the superclass default constructor in a subclass.[2分]
45. 您可以使用在子类中调用超类默认构造函数。[2分]

A super()
一个超级()

B SuperclassName(
B 超类名称(

C SuperclassName. super()
C 超类名称。超级()

D super SuperclassName()
D 超级超类名称()

46. An abstract method __ .[2分]
46. 一种抽象方法 __ .[2分]

 A cannot be contained in a nonabstract class
A 不能包含在非抽象类中

 B cannot be contained in an interface
B 不能包含在接口中

 C can be contained in a concrete class
C 可以包含在具体类中

D can be announced as private
D 可以宣布为私有

47. The keyword refers to the superclass and can be used to invoke the superclass smethods and constructors.[2分]
47. 关键字是指超类,可用于调用超类方法和构造函数。[2分]

A super
一个超级

B this
B 这个

  C parent
C 父项

48. A class can implement multiple__ 
48. 一个类可以实现multiple__

 A interfaces
A 接口

 B superclasses
B 超类

Cabstract classes
Cabstract 类

D data types
D 数据类型

49. The annotation denotes that the annotated method is required to override a method in the superclass.
49. 注解表示需要带注释的方法来覆盖超类中的方法。

 A Override
覆盖

B SuppressWarning
B 抑制警告

 C Super
C 超级

 D Parent
D 父级

49. means that a variable of a supertype can refer to a subtype object.[2]
49. 表示超类型的变量可以引用子类型对象。[2]

 A Polymorphism
多态性

B Inheritance
B 继承

C Abstraction
C 抽象

D Encapsulation
D 封装

1,_A_is an integrated development environment for rapidly developing programs.[2分]
1,_A_is用于快速开发程序的集成开发环境。[2分]

A Eclipse
日食

B Java APl

C JDK
C JDK的

D JRE

2.Every Java program must have at least one_A_.[2分]
2.每个Java程序必须至少有one_A_。[2分]

A class
一类

B function
B 函数

Cinstruction
C指令

D bytecode
D 字节码

3.You save a Java program in a__A_
3.将Java程序保存在a__A_

A.java file
A.java 文件

B.exe file
B.exe 文件

C.class file
C.class 文件

D.obj file
D.obj 文件

4.The compiled Java programs are executed by the_A_
4.编译后的Java程序由the_A_执行

A Java Virtual Machine
Java 虚拟机

B Java Development Toolkit
B Java 开发工具包

C operating system
C 操作系统

D integrated development environment
D 集成开发环境

5.You compile a Java program into a_B_[2分]
5.将Java程序编译成a_B_[2分]

A.java file
A.java 文件

B.class file
B.class 文件

C.obj file
C.obj 文件

D.exe file
D.exe 文件

6,The minimum storage unit in a computer is a_A_[2分]
6、计算机的最小存储单元为a_A_[2分]

A byte
一个字节

B bit
B位

C line
C线

D memory
D 内存

7.Amethod is a construct that contains_A__
7.Amethod 是一种contains_A__

A statements
A 发言

B bytecodes
B 字节码

C classes
C 类

Dfunctions
功能

8,Errors that are detected by the compiler are called__A__
8、编译器检测到的错误called__A__

A syntax errors
语法错误

B runtime errors
B 运行时错误

Clogic errors
Clogic 错误

Dcommon errors
D常见错误

9,Java programs can be run from a Web browser.Such programs are called__A_
9,Java程序可以从Web浏览器运行。这样的程序是called__A_

A applets
小程序

B applications
B 应用

C agents
C 代理

D D.HTML
D D.HTML

10.Every statement in Java ends with a___A__
10.Java中的每个语句都以a___A__结尾

known as the statement terminator.[2分]
称为语句终止符。[2分]

A semicolon
分号

B backspace
B 退格键

C blank
C 空白

D comma
D 逗号

11.In the following identifiers,__D__is invad.[2]
11.In 以下标识符,__D__is入侵。[2]

A myCar
一辆myCar

B long
B长

C at_3_rooms

D Dcontinue
D 继续

12.The operators in expressions are evaluated in the order determined by the following rules except____D__
12.表达式中的运算符按以下规则确定的顺序计算except____D__

A parentheses
括号

B operator precedence
B 运算符优先级

C operator associativity
C 运算符关联性

D operator appearance
D 操作员外观

13.___A__are names for naming elements in a program.[2分]
13.___A__are程序中命名元素的名称。[2分]

A ldentifiers
标识符

B Variables
B 变量

C Constants
C 常量

D Classes
D类

14.The symbols___A__
14.symbols___A__

appear together in a conditional expression.[2分]
一起出现在条件表达式中。[2分]

A?and:
A?和:

B>and?
B>和?

Cland=
克兰=

D<and>

15.Java uses__B__

to refer to the standard input device.[2分]
指标准输入设备。[2分]

A System.out
一个 System.out

B System.in
乙 System.in

C System.keyboard
C 系统键盘

D System.moniter

16.The___A__

executes the loop body first.[2分]
首先执行循环体。[2分]

A do-while loop
do-while 循环

B while loop
B while 循环

C goto loop
C goto 循环

D for loop
D 表示循环

The while loop and for loop are called___A__
while 循环和 for 循环是called___A__

because the continuation conditionis checked before the loop body is
因为延续条件在循环体之前被检查

executed.[2分]
执行。[2分]

A pretest loops
预测试循环

B posttest loops
B 后测循环

C infinite loops
C 无限循环

D basic loops
D 基本循环

18.The___A__ keyword only ends the current iteration of a loop.[2分]
18.The___A__关键字仅结束循环的当前迭代。[2分]

A continue
A 继续

B break
B休息

C goto
C 转到

D default
D 默认值

19.An____A___
is a loop statement that executes infinitely.[2分]
是一个无限执行的循环语句。[2分]

A infinite loop
无限循环

B executable loop
B 可执行循环

C endless loop
C 无限循环

D inner nested loop
D 内部嵌套循环

20.The part of the loop that contains the statements to be repeated is called___A__
20.循环中包含要重复的语句的部分called___A__

A the loop body
A 环体

B the loop definition
B 循环定义

C an iteration of the loop
C 循环的迭代

D the loop condition
D 循环条件

21.In the following operators__D___
21.In 以下operators__D___

is not a boolean operator.[2分]
不是布尔运算符。[2分]

A&&
BII
C!
D++
22.Java uses___A___
22.爪哇uses___A___

to refer to the standard output device.[2分]
指标准输出设备。[2分]

A System.out
一个 System.out

B System.in
乙 System.in

C System.keyboard
C 系统键盘

D System.moniter

23.
___B___is not a primitive type.[2分]
___B___is不是原始类型。[2分]

A Boolean
布尔值

B String
B 字符串

C Short
C 短

D Double
D双人床房 (D Double)

24.

A_____A__is a collection of statements bound by opening and closing braces.[2分]
A_____A__is由左大括号和右大括号绑定的语句的集合。[2分]

A block
一个区块

B statement
B 语句

C flow
C流

D variable
D 变量

25.___D_is not one of the selection statements[2分]
25.___D_is 不是选择语句之一[2分]

A if-else statement
if-else 语句

B if statement
B if 语句

C switch-case statement
C 开关案例语句

D for-each statement
D 对于每个语句

26.Overloading methods enables you to define the methods____A__
26.重载方法使您能够定义methods____A__

A with the same name as long as their signatures are different
A同名,只要签名不同

B with the same name as long as their signatures are same
B同名,只要签名相同

C with the different names as long as their signatures are different
C,只要它们的签名不同,就不同

D with the different names as long as their signatures are same
D,只要签名相同,名称就不同

27.The__D___class is used to write text to a character-output stream,buffering characters so as to provide for the eficient
27.The__D___class用于将文本写入字符输出流,缓冲字符以提供有效的

writing of single characters,arrays,and strings.[2分]
单个字符、数组和字符串的写入。[2分]

A FileReader
文件阅读器

B FileWriter
B 文件编写器

C BufferedReader
D BufferedWriter
D 缓冲写入器

28.In the following statements,__D_____
28.In 以下陈述__D_____

is wrong in Java.[2分]
在 Java 中是错误的。[2分]

A double myLis]={1.9,2.9,3.4,3.5};
双 myLis]={1.9,2.9,3.4,3.5};

B doublell myList =new double[4];
B doublell myList =新双[4];

C int n=4;double] myList=new double[n];
C int n=4;double] myList=new double[n];

D double myList[4];
D double myList[4];

29.Exceptions are thrown from a method.__A__
29.从method.__A__抛出异常

can catch and handle the exception.[2分]
可以捕获并处理异常。[2分]

A The caller of the method
A 方法的调用方

B The class of the method
B 方法的类

C Another given method
C 另一个给定的方法

D The main()method
D main() 方法

30.___A___can be used to define reusable code and organize and simplify coding.[2分]
30.___A___can用于定义可重用的代码以及组织和简化编码。[2分]

A Methods
A 方法

B Packages
B 套餐

C Fields
C 字段

D Attributes
D 属性

31.Constructors are a special kind of method.They have some peculiarities except____D___ 12分)
31.构造函数是一种特殊的方法。它们有一些特点except____D___ 12分)

A Aconstructor must have the same name as the class itself.
构造函数必须与类本身同名。

B Constructors do not have tereturn type--not even void.
B 构造函数没有 tereturn 类型,甚至没有 void。

C Constructors are invoked using the new operator when an object is created.
C 构造函数在创建对象时使用 new 运算符调用。

D. Aconstructor must have at least one statement to initialize static fields.
D. 构造函数必须至少有一个语句来初始化静态字段。

32.A__A____defines the properties and behaviors for objects.[2分]
32.A__A____defines对象的属性和行为。[2分]

A class
一类

B package
B包

C Java file
C Java 文件

D function
D 函数

33.After running the statement"Circle obj;",the value of reference variable"obj"is___A___ .[2分]
33.运行语句“Circle obj;”后,引用变量“obj”的值is___A___。[2分]

A null
空值

B not allocated
B 未分配

C arandom value
C 随机值

D an instance of class"scle"
D 类“scle”的实例

34.An object is____A__
34.对象is____A__

of a class.[2分]
[2分]

A an instance
一个实例

B a child
B 一个孩子

C a copy
C 副本

D an exception
D 例外

35.In the following statements about classes and objects,
35.In 以下关于类和对象的语句,

___D___is wrong.[2分]
___D___is错了。[2分]

A Classes are definitions for objects,
A 类是对象的定义,

B Objects are created from classes.
B 对象是从类创建的。

C An object is the instance of a given class.
C 对象是给定类的实例。

D.One object can be created from several classes.
D.可以从多个类创建一个对象。

36.The keyword___A____
36.keyword___A____

refers to the object itself.[2分]
指对象本身。[2分]

A this
A 这个

B me
B 我

C current
C电流

D obj

37、The___B___modifier makes methods and data fields accessible only from within its own class.[2分]
37、The___B___modifier使方法和数据字段只能从其自己的类中访问[2分]。

A public
一个公共

B private
B 私人

C protected
C 保护

D package
D封装

38.The state of an object (also known as its properties or attributes)is represented by__A___[2分]
38.对象的状态(也称为其属性或属性)表示by__A___[2分]

A fields
A 字段

B methods
B 方法

C classes
C 类

D constants
D 常量

A class can extend__A____
一个班级可以extend__A____

A one superclass
一个超类

B one interface
B 一个接口

C one enum
C 一个枚举

D multiple subclasses
D 多个子类

40.An abstract class_____D___
40.抽象class_____D___

A can be instantiated using the new operator
可以使用 new 运算符实例化 A

B cannot have constructors
B 不能有构造函数

C can have static abstract methods
C 可以有静态抽象方法

D can be inherited
D 可以继承

You can use___A___
您可以use___A___

to invoke the superclass default constructor in a subclass.[2分]
在子类中调用超类默认构造函数。[2分]

A super)
一个超级)

B SuperclassName()
B 超类名称()

C SuperclassName.super()
C 超类名称.super()

D super.SuperclassName()
D超。超类名称()

42.One object reference can be typecast into another object reference.This is called___A___
42.一个对象引用可以类型转换为另一个对象引用。这是called___A___

A casting object
铸造对象

B redefining object
B 重新定义对象

C inheriting object
C 继承对象

D overioading object
D overioading 对象

43.An abstract method___A__
43.抽象method___A__

A cannot be contained in a nonabstract class
A 不能包含在非抽象类中

B cannot be contained in an interface
B 不能包含在接口中

C can be contained in a concrete class
C 可以包含在具体类中

Dcan be announced as private
D可以宣布为私有

44.you can use_____A___
44.你可以use_____A___

to prevent classes from being extended.[2分1
以防止扩展类。[2分1

A final keyword
最后一个关键字

B const keyword
B const 关键字

C multiple inheritance
C 多重继承

D annotation
D 注释

45.You can use____A___to test whether an object is an instance of a class.[2分]
45.您可以use____A___to测试对象是否是类的实例[2分]。

A obj instanceof AClass
AClass 的 obj 实例

B obj is AClass
B obj 是 AClass

C AClass is obj.
C AClass 是 obj。

D AClass instanceof obj
D AClass 实例 obj

46.Every class in Java is descended from_____A_
46.Java中的每个类都是降from_____A_

A the java.lang.Object class
a java.lang.Object 类

B the java.lang.Null class
B java.lang.Null 类

C the java.lang.Base class
C java.lang.Base 类

D the java.lang.Super class
D java.lang.Super 类

47.Some programming languages allow you to derive a subclass from several classes.This capability is known as____A___
47.某些编程语言允许您从多个类派生一个子类。此功能已知as____A___

A multiple inheritance
多重继承

B complex inheritance
B 复合体继承

C skip-generation inheritance
C 跳跃生成继承

D outside inheritance
D 外部继承

48.The following statements are true except_____D___
48.以下说法属实except_____D___

A An instance method can be overridden only if it is accessible.
答:实例方法只有在可访问时才能被覆盖。

B Aprivate method cannot be overridden.
B 不能覆盖私有方法。

C Like an instance method,a static method can be inherited.
C 与实例方法一样,静态方法可以继承。

D Astatic method can be overridden.
D 可以覆盖静态方法。

49.An interface can extend____A____
49.接口可以extend____A____

A one or more interfaces
一个或多个接口

B nonabstract interfaces
B 非抽象接口

C one or more classes
C 一个或多个类

D -only one class
D - 只有一个班级

50.A(An)___A___cannot be used to create objects.[2分]
50.A(An)___A___cannot用于创建对象。[2分]

A abstract class
抽象类

B superclass
B 超类

C subclass
C 子类

D String class
D 字符串类

A1. Every statement in Java ends witha__ J knownas the statement terminator.[2分]
答、1.Java 中的每个语句都witha__ J 结尾,称为语句终止符。[2分]

A semicolon B backspace C blank D comma
A 分号 B 退格 C 空白 D 逗号

A、2. Java syntax is defined in the Java languagespecification, and the Java library is defined inthe __ .[2分]
A、2.Java 语法在 Java 语言规范中定义,Java 库在 __ .[2分]

A Java API B JDK CJRE D Java IDE

A、3. ( )is an integrated development environmentfor rapidly developing programs.[2分]
A、3.( )是一个用于快速开发程序的集成开发环境。[2分]

A Eclipse B Java API CJDK DJRE

D、4. A computer consists of the following majorhardware components except___ .[2分]
D、4.计算机由以下主要硬件组件组成except___。[2分]

A a central processing unit (CPU ) B memory (main memory) C input and output devices D programming language
A 中央处理器 (CPU) B 内存(主内存) C 输入输出设备 D 编程语言

6. The compiled Java programs are executed by the( )
6. 编译后的 Java 程序由 ( ) 执行

A Java Virtual Machine B Java Development Toolkit C operating system
A Java 虚拟机 B Java Development Toolkit C 操作系统

D integrated development environment
D 集成开发环境

答案: A

10. Software contains the_ that tell acomputerized device what to do.
10. 软件包含告诉计算机化设备该做什么的the_。

A instructions В languages C working flow D Java
A 指令 В 语言 C 工作流程 D Java

答案: A

11. You can convert a value from one type to anotherby_
11. 您可以将值从一种类型转换为anotherby_
.

A casting B import C Convert class D Assignment operators
A 转换 B 导入 C 转换类 D 赋值运算符

答案:A

13. Integer arithmetic (/) yields__ .[2)]
13. 整数算术 (/) yields__ .[2)]

A an integer result В a floating-point result
A 整数结果 В 浮点结果

C a boolean result D an integer result or a floating-point result
C 布尔结果 D 整数结果或浮点结果

答案:A

14. In the following operators, ___ is not a booleanoperator.
14. 在以下运算符中,___ 不是布尔运算符。

A && B ll C! D++
A & B ll C!D++

答案:D

15. An_. is a loop statement that executesinfinitely.[2]
15. An_。是一个无限执行的循环语句。[2]

A infinite loop B executable loop C endless loop D inner nested loop
无限循环 B 可执行循环 C 无限循环 D 内部嵌套循环

答案: A

16. The while loop and for loop are called( )because the continuation conditionis checkedbefore the loop body is executed.[2]
16. while 循环和 for 循环之所以被调用( ),是因为在执行循环体之前检查了延续条件。[2]

A pretest loops В posttest loops C infinite loops D basic loops
A 前测试循环 В 后测试循环 C 无限循环 D 基本循环

答案: A

17. Java language provides several types ofrepetition statements except__
17. Java语言提供了几种类型的重复语句except__
.

A for loop В do-while loop C while loop D for-each loop
A for 循环 В do-while 循环 C while 循环 D for-each 循环

答案: D

18. A__ is a collection of statements bound byopening and closing braces.[2]
18. A__ 是由左大括号和右大括号绑定的语句的集合。[2]

A block B statement C flow D variable
A 块 B 语句 C 流 D 变量

答案: A

19. You can use the ( )class to create an object to read input from the standard input device.
19. 您可以使用 ( ) 类创建一个对象来读取来自标准输入设备的输入。

A Scanner B Next C Reader D Scanf
A 扫描仪 B 下一个 C 读取器 D 扫描仪

答案:A

20. The operators in expressions are evaluated in theorder determined by the following rules except___.
20. 表达式中的运算符按以下规则except___确定的顺序计算。

A parentheses B operator precedence C operator associativity D operator appearance
A 括号 B 运算符优先级 C 运算符关联性 D 运算符外观

答案:D

21.__ is not one of the selection statements
21.__ 不是选择语句之一

A if-else statement B if statement C switch-case statement D for-each statement
A if-else 语句 B if 语句 C 切换大小写语句 D for each 语句

答案: D

22. An escape sequence consists of ( ).followed bya character or a combination of digits.[2分]
22. 转义序列由 ( ) 后跟一个字符或数字组合组成。[2分]

A a backslash (\) B a slash (/) C a double quotes (") D a single quotes ()
A 反斜杠 (\) B 斜杠 (/) C 双引号 (“) D 单引号 ()

答案:A

23. Java uses( )to refer to the standard output device.[2分]
23. Java uses( ) 来指代标准输出设备。[2分]

A System.out B System.in C System.keyboard D System.moniter

答案:A

24. You can use ( )to comment on one line in Java. [2分]
24. 您可以使用 ( ) 在 Java 中对一行进行注释。[2分]

A // B/**/ C/** */ D **

答案: A

25. The symbols( )appear together in a conditional expression.[2分]
25. 符号( )一起出现在条件表达式中。[2分]

A?and: B>and? C !and= D <and >
A>和:B和?C !and= D <和 >

答案:A

26. Exceptions are thrown from a method.( ) can catch and handle the exception.[2分]
26. 从方法中抛出异常。( ) 可以捕获并处理异常。[2分]

A The caller of the method B The class of the method
A 方法的调用方 B 方法的类

C Another given method D The main() method
C 另一个给定的方法 D main() 方法

答案:A

27. When passing an array to a method, ___ ispassed to the method.[2分]
27. 将数组传递给方法时,___ 传递给方法。[2分]

A the reference of the array B the name of the array
A 数组的引用 B 数组的名称

C a collection of the elements of the array D a collection of the indexes of the array
C 数组元素的集合 D 数组索引的集合

答案: A

28. The( )class is used to write text to a character-output stream, buffering characters so as toprovide for the efficient writing of single characters, arrays, and strings.
28. ( )类用于将文本写入字符输出流,缓冲字符,以便有效地写入单个字符、数组和字符串。

A FileReader B FileWriter C BufferedReader D BufferedWriter
A 文件读取器 B 文件编写器 C 缓冲读取器 D 缓冲读取器

答案:D

29. The following introductions to overloadingmethods are true except__. [26]
29. 以下对重载方法的介绍是正确的except__。[26]

A Overloading methods can make programsclearer and more readable.
A 重载方法可以使程序更清晰、更易读。

B Overloaded methods must have differentparameter lists.
B 重载方法必须具有不同的参数列表。

C Overloaded methods must have different return types.
C 重载方法必须具有不同的返回类型。

D Overloaded methods must have a same name.
D 重载方法必须具有相同的名称。

答案:C

30. The_____clause is always executed regardlesswhether an exception occurred or not.
30. 无论是否发生异常,The_____clause始终被执行。

A finally Btry Ccatch D throw
最后的 Btry Ccatch D 投掷

答案:A

31. An object's data and methods can be accessed through the__ operator via the object's reference variable.[2]
31. 对象的数据和方法可以通过the__算子通过对象的参考变量访问。[2]

A dot(.) В comma (,) C single quotes (') D backlash (\)
A 点(.) В 逗号 (,) C 单引号 (') D 背隙 (\)

答案:A

32. A static variable is__ .[29]
32. 静态变量 is__ .[29]

A shared by all objects of the class
由类的所有对象共享

В owned by only one object of the class
В 仅由类的一个对象拥有

C a variable defined in main class
C 主类中定义的变量

D a field of the class, which defined as static
D 类的字段,定义为静态

答案: A

33. lt is better to invoke static methods by using[2分]
33. lt 最好通过使用 [2分] 来调用静态方法

A ClassName.method
一个 ClassName.method

B 0bjectName.method
B 0bjectName.方法

C PackageName.method
C PackageName.方法

D ProjectName.method

答案:A

34. The keyword_____can be used inside a constructor to invoke another constructor of the same class.2分]
34. keyword_____can在构造函数内部用于调用同一类的另一个构造函数。

Athis B class C me D constructor
Athis B 类 C me D 构造函数

答案:A

35. Constructors are a special kind of method. Theyhave some peculiarities except_ . [2分]
35. 构造函数是一种特殊的方法。它们有一些特点except_ [2分]

A Aconstructor must have the same name asthe class itself.
构造函数必须与类本身同名。

B Constructors do not have a return type- -not even void.
B 构造函数没有返回类型 - 甚至没有 void。

C Constructors are invoked using the newoperator when an object is created.
C 构造函数在创建对象时使用 newoperator 调用。

D A constructor must have at least one statement to initialize static fields.
D 构造函数必须至少有一个语句来初始化静态字段。

答案: D

36. A static method____of the class.[2G]
36. 类method____of静态[2G]

A cannot access instance members
A 无法访问实例成员

B cannot access static members
B 无法访问静态成员

C can access any members
C 可以访问任何成员
;

D can only access static fields
D 只能访问静态字段

答案:A

37. Arrays are treated as___in Java.
37. 数组as___in Java 处理。

A objects В packages C collections D structures
A 对象 В 包 C 集合 D 结构

答案:A

38. The scope of instance and static variables is____.[2]
38. 实例变量和静态变量的范围is____。[2]

A the entire class
A 全班

B from the positions where the variables aredeclared to the end of the class
B 从声明变量的位置到类的末尾

C from the positions where the variables aredeclared to the start of the class
C 从变量声明的位置到类的开头

D assigned by the programmer
程序员分配的 D

答案:A

39. Some programming languages allow you toderive a subclass from several classes.Thiscapability is known as___.
39. 一些编程语言允许您从多个类派生一个子类。此功能as___已知。

A multiple inheritance
多重继承

В complex inheritance
В 复杂继承

C skip-generation inheritance
C 跳跃生成继承

D outside inheritance
D 外部继承

答案: A

40. An abstract method___ .[26]
40. 抽象method___ .[26]

A cannot be contained in a nonabstract class
A 不能包含在非抽象类中

B cannot be contained in an interface
B 不能包含在接口中

C can be contained in а concrete class
C 可以包含在 а 具体类中

D can be announced as private
D 可以宣布为私有

答案:A

41. An abstract class___ ,[ 25]
41. 抽象class___,[ 25]

A can be instantiated using the new operator
可以使用 new 运算符实例化 A

В cannot have constructors
В 不能有构造函数

C can have static abstract methods
C 可以有静态抽象方法

D can be inherited
D 可以继承

答案:D

42. If a subclass of an abstract superclass does notimplement all the abstract methods, the subclassmust be defined as.____
42.如果抽象超类的子类没有实现所有抽象方法,则必须as.____定义该子类

A abstract B static C final D virtual
A 抽象 B 静态 C 最终 D 虚拟

答案A

43. Every class in Java is descended from_____
43. Java 中的每个类都是降from_____

A the java.lang.Object class
a java.lang.Object 类

B the java.lang.Null class
B java.lang.Null 类

C the java.lang.Base class
C java.lang.Base 类

D the java.lang Super class
D java.lang 超级类

答案A

44. The keyword super can be used___
44.关键字super可以used___
.

A to call a superclass constructor
A 调用超类构造函数

B to call static superclass methods
B 调用静态超类方法

C to call subclass members
C 调用子类成员

D to define a new method in a superclass#4#:D
D 在超类 #4# 中定义一个新方法:D

答案A

45. The following classes are allowed to accessprotected data fields and methods in a
45. 允许以下类访问受保护的数据字段和方法。

superclass except_____
超类except_____

A the superclass itself
A 超类本身

В the subclasses
В 子类

C the subclasses of the subclasses
C 子类的子类

D another class in the same package
D 同一包中的另一个类

答案: D

46. If a static method defined in the superclass is redefined in a subclass, the method defined in thesuperclass is___
46. 如果在超类中定义的静态方法在子类中重新定义,则在超类中定义的方法is___
.

A hidden В overridden C overloadden D inherited
A 隐藏的 В 覆盖了 C 重载了 D 继承了

答案: A

47._____means that a variable of a supertype canrefer to a subtype object.
47._____means超类型的变量可以引用子类型对象。

A Polymorphism
多态性

В Inheritance
В 继承

C Abstraction
C 抽象

D Encapsulation
D 封装

答案A

48. Object-oriented programming allows you to definenew classes from existing classes.This is called__ _.[23]
48. 面向对象编程允许您从现有类定义新类。这是called___。[23]

A inheritance B abstraction C encapsulation D polymorphism
A 继承 B 抽象 C 封装 D 多态性

答案:A

49. An____is a class-like construct that contains
49. An____is类结构,其中包含

only constants and abstract methods.
只有常量和抽象方法。

A interface В abstract class C enum D array
接口 В 抽象类 C 枚举 D 数组

答案:A

50. A class can extend__ .[ 25]
50.一个班级可以extend__。[ 25]

A one superclass
一个超类

В one interface
В 一个界面

C one enum
C 一个枚举

D multiple subclasses
D 多个子类

答案: A

2. When executing a Java program, the JVM first loads thebytecode of the class to memory using a program called_
2. 在执行 Java 程序时,JVM 首先使用程序将类的字节码加载到内存中called_
.
A class loader
类装入器

B source loader
B 源加载器

C garbage collector
C 垃圾回收器

D bytecode verifier
D 字节码验证器

3. Every statement in Java ends with a
3. Java 中的每个语句都以

___, known as the statement terminator
___,称为语句终止符
.
A semicolon B backspace C blank D comma
A 分号 B 退格 C 空白 D 逗号

4. You save а Java program in a__ .
4.您将Java程序保存在a__中。

A .java file B .exe file C .class file D .obj file
A .java文件 B .exe 文件 C .class 文件 D .obj 文件

5. Before creating Java programs in Eclipse, you need to first create
5. 在 Eclipse 中创建 Java 程序之前,您需要先创建

to hold all files.
以保存所有文件。

A a project
一个项目

B a class
B A 类

) C a folder
) C 文件夹

0 D a workspace
0 D 工作区

6. The is the software for developing and running Java
6.是用于开发和运行Java的软件

programs.
程序。

A JDK B IDE C API D JRE

The source file of Java must__ .
Java must__ 的源文件。

A end with the extension .txt
以扩展名结尾.txt

B have the same exact nameas the public class name
B 具有与公共类名完全相同的名称

C have at least one statement
C 至少有一个语句

D running at least once before compiling
D 在编译前至少运行一次

10.___ are errors that cause a program to terminateabnormally.
10.___ 是导致程序异常终止的错误。

A Syntax errors
语法错误

B Runtime errors
B 运行时错误

C Logic errors
C 逻辑错误

D compile errors
D 编译错误

11. An__is a loop statement that executes infinitely.
11. An__is无限执行的循环语句。

A infinite loop
无限循环

B executable loop
B 可执行循环

C endless loop
C 无限循环

D inner nested loop
D 内部嵌套循环

In the following operators, is not a boolean operator.
在以下运算符中,不是布尔运算符。

A && B II C ! D ++
A & B II C D ++

13. Java uses to refer to the standard output device.
13. Java 用于指代标准输出设备。

A System.out
一个 System.out

B System.in
乙 System.in

C System.keyboard
C 系统键盘

D System.moniter

14. The keyword__ is optional in a switch statement.
14. keyword__在 switch 语句中是可选的。

A switch B case C break D none of switch, case and break
A 开关 B 外壳 C 断路 D 开关、外壳和断路均无

Java language provides several types of repetitionstatements except
Java 语言提供了几种类型的重复语句,除了

A for loop B do-while loop C while loop D for-each loop
A 表示循环 B do-while 循环 C 而循环 D for each 循环

17. are names for naming elements in a program.
17. 是程序中命名元素的名称。

A ldentifiers
标识符

B Variables
B 变量

C Constants
C 常量

D Classes
D类

18. You can convert a value from one type to another by__.
18. 您可以将值从一种类型转换为另一种类型by__。

A casting
演员表

B import
B 导入

C Convert class
C Convert 类

D Assignment operators
D 赋值运算符

19. A__ executes statements based on the value of avariable or an expression.
19. A__ 根据 avariable 或表达式的值执行语句。

A switch statement
switch 语句

B if statement
B if 语句

C for statement
C 表示语句

D while statement
D while 语句

20. In Java, the textual char represents_ .
20. 在 Java 中,文本 char represents_ .

A a16-bit Unicode character
一个 16 位 Unicode 字符

B a 8-bit utf-8 character
B 8 位 utf-8 字符

C a 16-bit ASCII character
C 16 位 ASCII 字符

D a 8-bit ASCII character
D 8 位 ASCII 字符

21 is an invalide assignment expression.
21 是无效赋值表达式。

A x=3
一个 x=3

B str= "Long ago"
B str= “很久以前”

C radius += 2.5
C 半径 += 2.5

D c!= 'C
D c!= 'C
'
22. In switch-case statement, once a case is matched,the
22. 在 switch-case 语句中,一旦匹配了案例,

statements starting from the matched case are executed until
从匹配的大小写开始执行语句,直到

A a break statement
中断语句

B a continue statement
B a 继续语句

C the end of the case statement
C 案例陈述的结尾

D the end of the else statement
D else 语句的末尾

23. You can use to obtain a random double value
23.可以用来获得随机双精度值

between 0.0 and 1.0, excluding 1.0.
介于 0.0 和 1.0 之间,不包括 1.0。

A Math.random()
一个 Math.random()

B Math.rand()
B 数学.rand()

C Math.srand()
C 数学.srand()

D Math.round(
D 数学回合(

A__ is a collection of statements bound by opening and
A__ 是由 open 和

closing braces.
右大括号。

A block
一个区块

B statement
B 语句

C flow
C流

D variable
D 变量

25. An is a construct that enables a program to specify
25. An 是一种结构,它使程序能够指定

alternative paths of execution.
替代执行路径。

A if statement
if 语句

B switch statement
B switch 语句

C for statement
C 表示语句

D while statement
D while 语句

26. When passing an array to a method, __ is passed to the
26. 将数组传递给方法时,__ 将传递给

method.
方法。

A the reference of the array
数组的引用

B the name of the array
B 数组的名称

C a collection of the elements of the array
C 数组元素的集合

D a collection of the indexes of the array
D 数组索引的集合

27. The arguments must match the parameters
27. 参数必须与参数匹配

as defined in the method signature.
如方法签名中所定义。

A in order, number, and compatible type
按顺序、编号和兼容类型

B in number, and compatible type
B 数量和兼容类型

C in order only
C 仅按顺序排列

D in order, number, and exact type
D 按顺序、编号和确切类型

28. The class is used to read text from a character-input
28. 该类用于从字符输入中读取文本

stream, buffering characters so as to provide for the
stream,缓冲字符,以便提供

efficient reading of characters, arrays, and strings.
高效读取字符、数组和字符串。

A FileReader
文件阅读器

B FileWriter
B 文件编写器

C BufferedReader
D BufferedWriter
D 缓冲写入器

29. Modularizing makes the code__ .
29. 模块化使code__.

A easy to maintain and debug
易于维护和调试

B hardtobereused:
B hardtobereused:

C complex and easy to be understood
C语言复杂易懂

D getting longer as expected
D 如预期的那样变长

30. Overloading methods enables you to define the methods___.
30. 重载方法使您能够定义methods___。

A with the same name as long as their signatures aredifferent
A同名,只要签名不同

B with the same name as long as their signatures aresame
B同名,只要签名相同

C with the different names as long as their signaturesare different
C,只要它们的签名不同,就不同

D with the different names as long as their signatures
D,只要他们的签名,名字就不同

are same
是一样的

31. The keyword refers to the object itself.[23]
31. 关键字是指对象本身。[23]

A this B me C current D obj
A 这个 B 我 C 当前 D obj

32. A constructor is invoked to create an object using the___operator.
32. 调用构造函数以使用 the___operator 创建对象。

A new
一个新的

B old
B 老

C delete
C 删除

D assignment (=)
D 赋值 (=)

34. The keyword can be used inside a constructor to
34. 关键字可以在构造函数中使用,以

invoke another constructor of the same class.
调用同一类的另一个构造函数。

A this B class C me D constructor
A this B 类 C me D 构造函数

35. It is better to invoke static methods by using __ .
35. 最好使用 __ 调用静态方法。

A ClassName.method
一个 ClassName.method

B ObjectName.method

C PackageName.method
C PackageName.方法

D ProjectName.method
36. Constructors are a special kind of method. They have
36.构造函数是一种特殊的方法。他们有

some peculiarities except
除了一些特点
.
A constructor must have the same name as the classitself.
构造函数必须与类本身同名。

B Constructors do not have a return type- -not evenvoid.
B 构造函数没有返回类型 - -not evenvoid。

C Constructors are invoked using the new operatorwhen an object is created.
C 构造函数在创建对象时使用 new 运算符调用。

D constructor must have at least one statement to
D 构造函数必须至少有一个语句

initialize static fields.
初始化静态字段。

37. A__ defines the properties and behaviors for objects.
37. A__定义对象的属性和行为。

A class
一类

B package
B包

C Java file
C Java 文件

D function
D 函数

38. All parameters are passed to methods using_ .
38. 所有参数都传递给方法using_。

A pass-by-value
传递值

B pass-by-name
B 通过名称

C pass-by-reference
C 逐个引用传递

D pass-by-param
D 逐个传递参数

39. An abstract class contains which are implemented in
39. 抽象类包含

concrete subclasses.
具体子类。

A abstract methods
抽象方法

B interfaces
B 接口

C static methods
C 静态方法

D constructors
D 构造函数

40. Private data fields in a super class_
40. 超级class_中的私有数据字段
.
A are accessible outside the class
A 可在课外访问

B can be used directly in a subclass
B 可以直接在子类中使用

C can be accessed through public methods defined in the super class
C 可以通过超类中定义的公共方法来访问 C

D are forbidden if you need extend the super class
如果您需要扩展超级类,则禁止 D

41. Some programming languages allow you to derive a
41. 一些编程语言允许你派生一个

subclass from several classes. This capability is known as
多个类的子类。此功能称为
.
A multiple inheritance
多重继承

B complex inheritance ;
B 复合遗传 ;

C skip-generation inheritance
C 跳跃生成继承

D outside inheritance
D 外部继承

42. You can use the modifier to prevent the fields and
42.您可以使用修饰符来阻止字段和

methods from being accessed by non subclasses from adifferent package.[26)]
方法,不被来自不同包的非子类访问。[26)]

A protected
受保护的

B private
B 私人

C public
C 公共

D package
D封装

43. means that a variable of a supertype can refer to
43.表示超型的变量可以指

asubtype object.
asubtype 对象。

A Polymorphism
多态性

B Inheritance
B 继承

C Abstraction
C 抽象

D Encapsulation
D 封装

44. If а subclass of an abstract superclass does not implementall the abstract methods, the subclass must be defined as
44. 如果抽象超类的子类没有实现所有抽象方法,则该子类必须定义为
.
A abstract
摘要

B static
B 静态

C final
C决赛

D virtual
D 虚拟

45. You can use to invoke the superclass default
45. 您可以使用 调用超类 default

constructor in a subclass.
子类中的构造函数。

A super()
一个超级()

B SuperclassName()
B 超类名称()

C SuperclassName.super()
C 超类名称.super()

D super.SuperclassName()
D超。超类名称()

46. To override a method, the method must be defined in the
46. 要覆盖方法,必须在

subclass using as in its superclass.
子类在其超类中使用 as。

A the same signature and the same return type
相同的签名和相同的返回类型

B the same name and differeent return type
B 相同名称和不同的返回类型

C the same signature and different return type
C 相同的签名和不同的返回类型

D he same name and different parameter list
D 同名不同参数列表

47. An interface is treated in Java.
47. 接口在 Java 中处理。

A like a special class
一个像特殊班级一样的班级

B like a special data type
B 喜欢特殊数据类型

C like a special package
C类类似特殊包装

D like a special static field
D ike 一个特殊的静态场

48. A class can extend
48. 一个类可以扩展
.
A one superclass
一个超类

B one interface
B 一个接口

C one enum
C 一个枚举

D multiple subclasses
D 多个子类

49. The following classes are allowed to access protected datafields and methods in a superclass except ___
49. 允许以下类访问超类中受保护的数据字段和方法,但 ___

A the superclass itself
A 超类本身

B the subclasses
B 子类

C the subclasses of the subclasses
C 子类的子类

D another class in the same package
D 同一包中的另一个类

50. You can use, to test whether an object is an instance
50. 您可以使用 来测试对象是否为实例

of a class.
一个班级。

A obj instanceof AClass
AClass 的 obj 实例

B obj is AClass
B obj 是 AClass

C AClass is obj
C AClass 是 obj

D AClass instanceof obj
D AClass 实例 obj

The_____contains predefined classes and interfaces for developing Java programs.
The_____contains用于开发 Java 程序的预定义类和接口。

A.application program interface B.language specification
A.应用程序接口 B.语言规范

C.Java Development Toolkit D.integrated development environment
C.Java开发工具包 D.集成开发环境

A computer consists of the following major hardware components except___.
计算机由以下主要硬件组件组成except___。

a central processing unit(CPU) B.memory(main memory)
中央处理器(CPU) B.内存(主内存)

input and output devices D.programming language
输入输出设备 D.编程语言

The____is the software for developing and running Java programs.
The____is用于开发和运行Java程序的软件。

A.JDK B.IDE C.API D.JRE

Every statement in Java ends with a____,known as the statement terminator
Java 中的每个语句都以 a____ 结尾,称为语句终止符

A.semicolon B.backspace C.blank D.comma
A.分号 B.退格 C.空白 D.逗号

The compiled Java programs are executed by the____
编译后的 Java 程序由 the____ 执行

A.Java Virtual Machine B.Java Development Toolkit
A.Java 虚拟机 B.Java 开发工具包

operating system D.integrated development environment
操作系统 D.集成开发环境

Java syntax is defined in the Java language specification,and the Java library is defined in the____
Java语法在Java语言规范中定义,Java库在the____中定义

A.Java API B.JDK C.JRE D.Java IDE

When executing a Java program,the JVM first loads the bytecode of the class to memory using a program called___
在执行 Java 程序时,JVM 首先使用程序called___将类的字节码加载到内存中

A.class loader B.source loader C.garbage loader D.bytecode loader
A.类加载器 B.源码加载器 C.垃圾加载器 D.字节码加载器

____are errors that cause a program to terminate abnormally
____are导致程序异常终止的错误

Syntax errors B.Runtime errors C.Logic errors D.compile errors
语法错误 B.运行时错误 C.逻辑错误 D.编译错误

An ____is a construct that enables a program to specify alternative paths of execution
____is一种构造,使程序能够指定替代执行路径

A.if statement B.switch statement C.for statement D.while statement
A.if 语句 B.switch 语句 C.for 语句 D.while 语句

You can convert a value from one type to another by______
您可以将值从一种类型转换为另一种类型by______

A.casting B.import C.Convert class D.Assignment operators
A.casting B.导入 C.Convert 类 D.赋值运算符

___is an invalide assignment expression
___is无效赋值表达式

x=3 B.str=Long ago C.radius+=2.5 D.c!=c
x=3 B.str=“很久以前” C.radius+=2.5 D.c!=c'

15. The_returns true if two strings are equal, and false if they are not equal.
15. 如果两个字符串相等,则The_returns真,如果它们不相等,则为 false。

A. equals method B. substring method C compare To method D concat method
A. 等于方法 B. 子字符串法 C 比较方法 D concat 法

17. The part of the loop that contains the statements to be repeated is called__
17. 包含要重复的语句的循环部分是called__
.

A the loop body B. the loop definition C. an iteration of the loop D. the loop condition
A 循环体 B 循环定义 循环的迭代 D. 循环条件

18. An__ is a loop statement that executes infinitely.
18. An__ 是一个无限执行的循环语句。

A infinite loop B. executable loop C. endless loop D. inner nested loop
无限循环 B. 可执行循环 Cendless 循环 晚餐嵌套循环

19. In switch-case statement, once a case is matched, the statements starting from the matched case are executed until___
19. 在 switch-case 语句中,一旦匹配了案例,从匹配案例开始的语句就会until___执行

A a break statement B a continue statement C the end of the case statement D the end of the else statement
A 中断语句 B 继续语句 C 案例语句的结尾 D else 语句的结尾

20. The___ keyword only ends the current iteration of a loop.
20. The___关键字仅结束循环的当前迭代。

A continue B break C go to D default
A 继续 B 中断 C 转到 D 默认

21. You can use the__-class to create an object to read input from the standard input device
21. 您可以使用 the__-class 创建一个对象来读取标准输入设备的输入

A Scanner B Next C Reader D Scanf
A 扫描仪 B 下一个 C 读取器 D 扫描仪

22. Java uses ___to refer to the standard input device.
22. Java 使用___to指标准输入设备。

A.System.out B. System.in C .System.keyboard D .System.moniter

23. Java language provides several types of repetition statements except__
23. Java 语言提供了几种类型的重复语句except__
.

A for loop В do-while loop C while loop D for-each loop
A for 循环 В do-while 循环 C while 循环 D for-each 循环

24. In Java, the textual char represents__
24. 在 Java 中,文本字符represents__
.

A. a 16-bit Unicode character B. a 8-bit utf-8 character C .a 16-bit ASCII character D. a 8-bit ASCII character
A. 一个 16 位 Unicode 字符 Ba 8 位 utf-8 字符 C 一个 16 位 ASCII 字符 Da 8 位 ASCII 字符

25. Java uses___to refer to the standard output device.
25. Java uses___to指标准输出设备。

A System.out В System.in C .System.keyboard D System.moniter

26. When passing an array to a method,__ is passed to themethod.[2G]
26. 将数组传递给方法时,__ 将传递给该方法。[2克]

A the reference of the array В the name of the array
A 数组的引用 В 数组的名称

C a collection of the elements of the array D a collection of the indexes of the array
C 数组元素的集合 D 数组索引的集合

27. The__clause is always executed regardless whether an exception occurred or not.[29]
27. 无论是否发生异常,The__clause总是被执行的[29]。

A finally B.try C. catch D.throw
最后的 Btry Ccatch Dthrow

28. Overloading methods enables you to define the methods_
28. 重载方法使您能够定义methods_
.

A. with the same name as long as their signatures are.different
A.同名,只要签名不同

B. with the same name as long as their signatures are.same
B只要签名相同,就同名

C .with the different names as long as their signatures.are different
C,只要它们的签名不同,就不同

D .with the different names as long as their signatures are same
D,只要签名相同,名称就不同

29. The following introductions to overloading methods are true except___
29. 以下对重载方法的介绍是正确的except___

A Overloading methods can make programs clearer and more readable.
A 重载方法可以使程序更清晰、更易读。

B Overloaded methods must have different parameter lists.
B 重载方法必须具有不同的参数列表。

C .Overloaded methods must have different return types.
C .重载方法必须具有不同的返回类型。

D .Overloaded methods must have a same name.
D 重载方法必须具有相同的名称。

30. A__ method does not return a value.
30. A__方法不返回值。

A.void B. char C.int D .double

31. An object is___of a class
31. 类is___of对象

A an instance B a child C .a copy D an exception
A 实例 B 子实例 C 副本 D 异常

32. The scope of instance and static variables is___
32. 实例变量和静态变量的范围is___

A .the entire class B. from the positions where the variables are declared to the end of the class
A .整个类 B从声明变量的位置到类的末尾

C. from the positions where the variables are declared to the start of the class
C从声明变量的位置到类的开头

D. assigned by the programmer
由程序员分配

33. A__ defines the properties and behaviors for objects.
33. A__定义对象的属性和行为。

A class B.package C. Java file D.function
A 类 B.package CJava 文件 Dfunction

All parameters are passed to methods using
所有参数都传递给使用

A.pass-by-value B pass-by-name C pass-by-reference D.pass-by-param
A-by-value B pass-by-name C pass-by-reference Dpass-by-param

35.____is a template for objects.
35.____is对象的模板。

A .A class . B.A package C. A constructor D. A destructor
A 类 BA 包 CA 构造函数 DA 析构函数

36. Passing an object to a method is to pass__
36.将对象传递给方法就是pass__

A. the reference of the object B. a copy of the object
对象的引用 对象的 Ba 副本

C .the name of the object D. the object itself
C 对象名称 D 对象本身

38. Constructors are a special kind of method. They have some peculiarities except
38.构造函数是一种特殊的方法。它们有一些特点,除了

A .A constructor must have the same name as the class itself.
A 构造函数必须与类本身同名。

B .Constructors do not have a return type- -not even void.
B 构造函数没有返回类型 - 甚至没有 void。

C Constructors are invoked using the new operator when an object is created.
C 构造函数在创建对象时使用 new 运算符调用。

D .A constructor must have at least one statement to initialize static fields
D .构造函数必须至少有一个语句才能初始化静态字段
.

39.Object-oriented programming allows you to define newclasses from existing classes.This is called__
39.面向对象编程允许您从现有类定义新类。这是called__
.

A inheritance B abstraction C encapsulation D polymorphism
A 继承 B 抽象 C 封装 D 多态性

40. you can use to prevent classes from being extended.
40. 您可以使用来阻止课程扩展。

A final keyword B const keyword C multiple inheritance D annotation
A 最终关键词 B const 关键字 C 多重继承 D 注解

41. If a static method defined in the super class is redefined in a subclass, the method defined in the super class is___
41. 如果在子类中重新定义了在超类中定义的静态方法,则在超类中定义的方法is___

A.hidden B overridden C overloadden D inherited
A.隐藏 B 覆盖 C 超载 D 继承

42. The keyword super can be used__
42.关键字super可以used__

A to call a super class constructor B to call static super class methods
A 调用超类构造函数 B 调用静态超类方法

C to call subclass members D to define a new method in a super class
C 调用子类成员 D 在超类中定义新方法

43. If a subclass of an abstract super class does not implement all the abstract methods, the subclass must be defined as___
43. 如果抽象超类的子类没有实现所有抽象方法,则必须定义该子类as___

A abstract B static C final D virtual
A 抽象 B 静态 C 最终 D 虚拟

44. The following classes are allowed to access protected datafields and methods in a superclass except___
44. 允许以下类访问超类except___中受保护的数据字段和方法
.

A the superclass itself B the subclasses C the subclasses of the subclasses D another class in the same package
A 超类本身 B 子类 C 子类的子类 D 同一包中的另一个类

45. The annotation __denotes that the annotated method is required to override a method in the superclass.
45. 注释__denotes需要注释的方法才能覆盖超类中的方法。

A.@Override B @SuppressWarning C @Super D @Parent

46. A(An)__-cannot be used to create objects.
46. A(An)__-不能用于创建对象。

A abstract class
抽象类

B superclass
B 超类

C subclass
C 子类

D String class
D 字符串类

The following statements are true except ___
以下陈述均为真,但 ___
.

A An instance method can be overridden only if it is accessible.
答:实例方法只有在可访问时才能被覆盖。

В A private method cannot be overridden.
В 不能覆盖私有方法。

C Like an instance method, a static method can be inherited.
C 与实例方法一样,静态方法可以继承。

D A static method can be overridden.
D 可以重写静态方法。

An abstract class contains concrete ___which are implemented in concrete subclasses.
抽象类包含具体___which在具体子类中实现。

A abstract methods B interfaces
A 抽象方法 B 接口

C static methods D constructors
C 静态方法 D 构造函数

49. You can use_____ to invoke the superclass default constructor in a subclass.
49. 您可以use_____在子类中调用超类默认构造函数。

A super() B SuperclassName() C SuperclassName .super() D super.SuperclassName()
A super() B superclassName() C superclassName .super() D super.超类名称()

50. An ___ is a class-like construct that contains only constants and abstract methods.
50. ___ 是一种类结构,仅包含常量和抽象方法。

A interface B abstract class
A 接口 B 抽象类

C enum D array
C 枚举 D 数组


The source file of Java must____.
Java must____ 的源文件。

end with the extension .txt
以扩展名结尾.txt

have the same exact names the public class name
具有与公共类名完全相同的名称

Have at least one statement
至少有一个语句

Running at least once before compiling
编译前至少运行一次

Java syntax is defined in the Java language specification,and the Java library is defined in the___.
Java语法在Java语言规范中定义,Java库在the___中定义。

Java API

JDK

JRE

Java IDE
Java IDE的

Errors that are detected by the compiler are called___or compile errors.
编译器检测到的错误called___or编译错误。

syntax errors
语法错误

runtime errors
运行时错误

logic errors
逻辑错误

common errors
常见错误

Software contains the____that tell a computerized device what to do.
软件包含告诉计算机化设备该做什么the____that。

instructions
指示

languages
语言

working flow
工作流程

Java
爪哇岛

Java is a_____.
Java 是a_____。

human language
人类语言

machine language
机器语言

assembly language
汇编语言

high-level language
高级语言

The____is the software for developing and running Java programs.
The____is用于开发和运行Java程序的软件。

JDK

IDE

API

JRE

_____is to develop client-side applications.
_____is开发客户端应用程序。

Java SE
Java SE的

Java EE
Java EE的

Java ME
Java ME的

Java Applet
Java 小程序

Every Java program must have at least one___.
每个 Java 程序必须至少有 one___。

class

function
功能

instruction
指令

bytecode
字节码

You must first____before you can compile and run Java programs.
您必须first____before可以编译和运行 Java 程序。

install and configure the JDK C.buy a book
安装和配置 JDK C.buy a book

regist an Oracle member D.uninstall IDEs of other programming languages
注册 Oracle 成员 D.卸载其他编程语言的 IDE

The Java program is executed from____.
Java 程序from____执行。

the main method
主要方法

any method
任何方法

the first method in main class
主类中的第一种方法

the last method in main class
主类中的最后一个方法

_____is the process of finding and fixing errors in a program.
_____is查找和修复程序中错误的过程。

Debugging
调试

Running
运行

Compiling
编译

Testing
测试

____are names for naming elements in a program.
____are程序中命名元素的名称。

Identifiers
标识符

Variables
变量

Constants
常数

Classes

Integer arithmetic(/)yields____.
整数算术(/)yields____。

an integer result
整数结果

a floating-point result
浮点结果

a boolean result
布尔值结果

an integer result or a floating-point result
整数结果或浮点结果

_____is an invalide assignment expression.
_____is无效赋值表达式。

x=3

str = Long ago
str = “很久以前”

radius += 2.5
半径 += 2.5

c !=c
c !=c

A___is a collection of statements bound by opening and closing braces.
A___is由左大括号和右大括号绑定的语句集合。

block

statement
陈述

flow

variable
变量

____is not a numeric data type.
____is不是数值数据类型。

Long

Float

Byte
字节

Bit

You can use____to obtain a random double value between 0.0and1.0,excluding 1.0.
use____to可以获取0.0和1.0之间的随机双精度值,不包括1.0。

Math.random()
数学.random()

Math.rand()
数学.rand()

Math.srand()
数学.srand()

Math.round()
数学.round()

In switch-case statement,once a case is matched,the statements starting from the matched case are executed until____.
在switch-case语句中,一旦匹配到case,从匹配的case开始的语句就会until____执行。

a break statement C.the end of the case statement
中断语句 C.案例语句的结尾

A continue statement D.the end of the else statement
继续语句 D.else 语句的结尾

_____is not one of the selection statements.
_____is不是选择语句之一。

if-else statement
if-else 语句

If statement
If 语句

Switch-case statement
开关案例语句

For-each statement
For-each 语句

You can convert a value from one type to another by____.
您可以将值从一种类型转换为另一种类型by____。

Casting
铸造

Import
进口

Convert class
Convert 类

Assignment operators
赋值运算符

Java uses ____to refer to the standard output device.
Java 使用____to来指代标准输出设备。

system.out
系统输出

System.in

System.keyboard

System.moniter

Suppose x is assigned to 1 and y is also assigned to1 ,the value of expression x==yis___.
假设 x 赋给 1,y 也赋给 1,表达式的值 “x==y”is___。

False

True

1

Random value except 0
除 0 之外的随机值

23.An escape sequence consists of_____followed by a character or a combination of digits.
23.转义序列由一个字符或数字组合of_____followed组成。

a backslash(\)
反斜杠(\)

A slash(/)
斜杠(/)

A double quotes()
双引号(“)

A single quotes()
单个引号()

24.You can use ____ to comment on one line in Java.
24.在Java中,您可以使用____对一行进行注释。

//

/* */

/** */

**

The____executes the loop body first.
首先The____executes循环体。

do-while loop
do-while 循环

While loop
while 循环

Goto loop
转到循环

For loop
For 循环

The arguments must match the parameters___,as defined in the method signature.
参数必须与方法签名中定义的parameters___匹配。

in order,number,and compatible type
按顺序、编号和兼容类型

In number,and compatible type
在数量和兼容类型上

In order only
仅订购

In order,number,and exact type
按顺序、编号和确切类型

The____class is used to obtain file properties and manipulate files.It does not contain the methods for creating a file or for reading/writing data from/to a file.
The____class 用于获取文件属性和操作文件。它不包含用于创建文件或从文件读取/写入数据的方法。

File C.Folder
文件 C.Folder

FileProperty D.Property
文件属性 D.属性

The_____clause is always executed regardless whether an exception occurred or not.
无论是否发生异常,The_____clause始终执行。

Finally
最后

Try

Catch
抓住

Throw

In the following statements,_____is wrong in Java.
在下面的陈述中,_____is Java 中是错误的。

double myList[] ={1.9,2.9,3.4,3.5};
双 myList[] ={1.9,2.9,3.4,3.5};

Double[] myList = new double[4];
double[] myList = 新 double[4];

Int n=4;double[] myList = new double[n];
整数 n=4;double[] myList = 新 double[n];

Double myList[4];
双 myList[4];

____can be used to define reusable code and organize and simplify coding.
____can用于定义可重用的代码以及组织和简化编码。

Methods
方法

Packages

Fields
领域

Attributes
属性

The keyword____can be used inside a constructor to invoke another constructor of the same class.
keyword____can在构造函数中用于调用同一类的另一个构造函数。

This

Class

Me

Constructor
构造 函数

In the following statements about classes and objects,____is wrong.
在以下关于类和对象的陈述中,____is错误的。

Classes are definitions for objects
类是对象的定义

Objects are created from classes
对象是从类创建的

An object is the instance of a given class
对象是给定类的实例

One object can be created from several classes
可以从多个类创建一个对象

You can provide a _____ to enable clients to modify the data.
您可以提供_____,使客户端能够修改数据。

getter method
getter 方法

Setter method
Setter 方法

Static method
静态方法

Final method
最终方法

The___modifier makes methods and data fields accessible only from within its own class.
The___modifier 使方法和数据字段只能从其自己的类中访问。

Public
公共

Private
私人

Protected
保护

Package

A____defines the properties and behaviors for objects.
A____defines对象的属性和行为。

Class

Package

Java file
Java 文件

Function
功能

You can use the____modifier for classes,methods,and data fields to denote that they can be accessed from any other classes.
可以对类、方法和数据字段使用 the____modifier,以表示可以从任何其他类访问它们。

public B.protected C.private D.package
公共 B.受保护 C.私有 D.包

Arrays are treated as____in Java.
数组as____in Java 处理。

Objects
对象

Package

Collections
收集

Structures
结构

All parameters are passed to methods using_____.
所有参数都传递给方法using_____。

pass-by-value
按值传递

Pass-by-name
按名称传递

Pass-by-reference
按引用传递

Pass-by-param

Private data field in a superclass_____.
superclass_____中的私有数据字段。

are accessible outside the class
可在课外访问

Can be used directly in a subclass
可直接在子类中使用

Can be accessed through public methods defined in the superclass
可以通过超类中定义的公共方法进行访问

Are forbidden if you need extend the superclass
如果需要扩展超类,则禁止

You can use _____to test whether an object is an instance of a class.
您可以使用_____to测试对象是否是类的实例。

obj instance of AClass
AClass 的 obj 实例

Obj is AClass
Obj 是 AClass

AClass is obj
AClass 是 obj

AClass instance of obj
obj 的 AClass 实例

Every class in Java is descended from____.
Java 中的每个类都是降from____的。

the java.lang.Object class
java.lang.Object 类

The java.lang.Null class
java.lang.Null 类

The java.lang.Base class
java.lang.Base 类

The java.lang.super class
java.lang.super 类

An abstract method_____.
一个抽象的method_____。

cannot be contained in a nonabstract class
不能包含在非抽象类中

Cannot be contained in an interface
不能包含在接口中

Can be contained in a concrete class
可以包含在具体类中

Can be announced as private
可以宣布为私有

The following statements are true except_____.
以下陈述except_____是正确的。

an instance method can be overridden only if it is accessible
实例方法只有在可访问时才能被重写

A private method cannot be overridden.
不能重写私有方法。

Like an instance method,a static method can be inherited.
与实例方法一样,静态方法可以继承。

A static method can be overridden
可以重写静态方法

An interface is treated _____in Java.
接口_____in Java 处理。

like a special class
就像一个特殊的班级

like a special data type
就像特殊数据类型一样

like a special package
就像一个特殊的包裹

like a special static field
就像一个特殊的静态场

One object reference can be typecast into another object reference.This is called____.
一个对象引用可以类型转换为另一个对象引用。这是called____。

casting object
铸造对象

redefining object
重新定义对象

inheriting object D.overloading object
继承对象 D.重载对象

You can use the____modifier to prevent the fields and methods from being accessed by nonsubclasses from a different package.
您可以使用 the____modifier 来防止来自不同包的非子类访问字段和方法。

protected
保护

private
私人

public
公共

package

A class can implement multiple____.
类可以实现multiple____。

interfaces
接口

superclasses
超类

abstract classes
抽象类

data types
数据类型

An abstract class contains_____,which are implemented in concrete subclasses.
抽象类contains_____,在具体的子类中实现。

abstract methods
抽象方法

interfaces
接口

static methods
static 方法

constructors
构造 函数

In general,____relationships should be modeled using inheritance.
通常,____relationships应该使用继承进行建模。

is-a
是-A

act-as
作为

have-more
有更多

singleton
单身 人士

An____is a class-like construct that contains only constants and abstract methods.
An____is类结构,仅包含常量和抽象方法。

interface
接口

abstract class
抽象类

enum
枚举

array
数组

The minimum storage unit in a computer is a_____.
计算机中的最小存储单元是a_____。

Byte
字节

Bit

Line
线

Memory
记忆

When executing a Java program,the JVM first loads the bytecode of the class to memory using a program called____.
在执行 Java 程序时,JVM 首先使用程序called____将类的字节码加载到内存中。

class loader
类加载器

Source loader
源加载器

Garbage collector
垃圾回收器

Bytecode verifier
字节码验证器

Every statement in Java ends with a _____,known as the statement terminator.
Java 中的每个语句都以一个 _____ 结尾,称为语句终止符。

Semicolon
分号

Backspace
退格键

Blank
空白

Comma
逗点

You save a Java program in a____.
在 a____ 中保存 Java 程序。

.java file B. .exe file C. .class file D. .obj file
.java文件B。exe 文件 C. .类文件 D. .OBJ 文件

Before creating Java programs in Eclipse,you need to first create_____to hold all files.
在Eclipse中创建Java程序之前,您需要先create_____to保存所有文件。

a project B.a class C.a folder D.a workspace
项目 B.a 类 C.a 文件夹 D.a 工作区

An______is a loop statement that executes infinitely.
An______is无限执行的循环语句。

infinite loop B.executable loop C.endless loop D.compile errors
无限循环 B.可执行循环 C.无限循环 D.编译错误

In the following operators,_____is not a boolean operator.
在以下运算符中,_____is不是布尔运算符。

&& B.|| C.! D.++
&& B.||C.!D.++

The keyword____ is optional in a switch statement.
keyword____在 switch 语句中是可选的。

switch B.case C.break D.none of switch,case and break
开关 B.外壳 C.断开 D.无开关、外壳和断开

The symbols______appear together in a conditional expression.
symbols______appear在条件表达式中组合在一起。

? and : B.> and ? C.! and = D.< and >
?和 B.> 和 ?C.!和 = D.< 和 >

A_____executes statements based on the value of a variable or an expression.
A_____executes基于变量或表达式值的语句。

switch statement B.if statement C.for statement D.while statement
switch 语句 B.if 语句 C.for 语句 D.while 语句

In Java,the textual char represents_____.
在 Java 中,文本字符represents_____。

a 16-bit Unicode character
16 位 Unicode 字符

A 8-bit utf-8 character
8 位 utf-8 字符

A 16-bit ASCII character
16 位 ASCII 字符

A 8-bit ASCII character
一个 8 位 ASCII 字符

When passing an array to a method,_____is passed to the method.
将数组传递给方法时,_____is传递给该方法。

the reference of the array
数组的引用

The name of the array
数组的名称

A collection of the elements of the array
数组元素的集合

A collection of the indexes of the array
数组索引的集合

The____class is used to read text from a character-input stream,buffering characters so as to provide for the efficient reading of characters,arrays,and strings.
The____class用于从字符输入流中读取文本,缓冲字符,以便提供字符、数组和字符串的高效读取。

FileReader B.FileWriter C.BufferedReader D.BufferedWriter
文件读取器 B.文件编写器 C.缓冲读取器 D.缓冲编写器

Modularizing makes the code____.
模块化使code____。

Easy to maintain and debug
易于维护和调试

Hard to be reused
难以重复使用

Complex and easy to be understood
复杂且易于理解

Getting longer as expected
正如预期的那样变长

Overloading methods enables you to define the methods_____.
重载方法使您能够定义methods_____。

with the same name as long as their signatures are different
只要签名不同,就同名

With the same name as long as their signatures are same
只要他们的签名相同,就使用相同的名称

With the different names as long as their signatures are different
使用不同的名称,只要它们的签名不同

With the different names as long as their signatures are same
使用不同的名称,只要它们的签名相同

The keyword____ refers to the object itself.
keyword____是指对象本身。

this B.me C.current D.obj
这 B.me C.current D.obj

A constructor is invoked to create an object using the_____operator.
调用构造函数以使用 the_____operator 创建对象。

new B.old C.delete D.assignment(=)
新 B.old C.删除 D.赋值(=)

It is better to invoke static methods by using____.
最好通过using____调用静态方法。

ClassName.method B.ObjectName.method

PackageName.method D.ProjectName.method

Constructors are a special kind of method.They have some peculiarities except____.
构造函数是一种特殊的方法。它们except____有一些特点。

A constructor must have the same name as the class itself
构造函数必须与类本身同名

Constructor do not have a return type-not even void
构造函数没有返回类型 - 甚至没有 void

Constructor are invoked using the new operator
使用 new 运算符调用构造函数

A constructor must have least one statement to initialize static fields
构造函数必须至少有一个语句才能初始化静态字段

Some programming languages allow you to derive a subclass from several classes.This capability is known as____.
某些编程语言允许您从多个类派生子类。此功能as____已知。

multiple inheritance
多重继承

Complex inheritance
复杂继承

Skip-generation inheritance
跳过生成继承

Outside inheritance
外部继承

______means that a variable of a supertype can refer to a subtype object.
______means超类型的变量可以引用子类型对象。

abstract B.static C.final D.virtual
abstract B.静态 C.最终 D.虚拟

You can use____ to invoke the superclass default constructor in a subclass.
您可以use____在子类中调用超类默认构造函数。

super() B.SuperclassName()
super() B.SuperclassName()

SuperclassName.super() D.super.SuperclassName()
SuperclassName.super() D.super.SuperclassName()

To override a method, the method must be defined in the subclass using____as in its superclass.
若要重写方法,必须在子类using____as其超类中定义该方法。

The same signature and the same return type
相同的签名和相同的返回类型

The same name and different return type
相同的名称和不同的返回类型

The same signature and different return type
相同的签名和不同的返回类型

The same name and different parameter list
相同的名称和不同的参数列表

A class can extend_____.
一个班级可以extend_____。

One superclass B. one interface C. one enum D.multiple subclasses
一个超类 B. 一个接口 C. 一个枚举 D.多个子类

The following classes are allowed to access protected data fields and methods in a superclass except____
允许以下类访问超类except____中受保护的数据字段和方法

The superclass itself
超类本身

The subclasses
子类

The subclasses of the subclasses
子类的子类

Another class in the same package
同一包中的另一个类

76.A method is a construct that contains___
76.方法是一种contains___

A. statements B. byte codes C.classes D.functions
A. 语句 B. 字节码 C.类 D. 函数

77.The compiled Java programs are executed by the _
77.编译后的 Java 程序由 _

A.Java Virtual Machine B.Java Development Toolkit
A.Java 虚拟机 B.Java 开发工具包

78.The _contains predefined classes and interfaces for developing
78.用于开发的_contains预定义类和接口

Java programs.
Java 程序。

A.application program interface B.language specification
A.应用程序接口 B.语言规范

79.A computer consists of the following major hardware components except_
79.计算机由以下主要硬件组件组成except_

A. a central processing unit B.memory(main memory )
A.中央处理器 B.内存(主存储器)

C.input and output devices D.programming language
C.输入输出设备 D.编程语言

80.you compile a Java program into a _.
80.将Java程序编译为_。

A..java file B.class.file C..obj file D..exe file
一个。。java 文件 B.class.file C..obj 文件 D..EXE 文件

81.you can not use -for developing Java programs.
81.不能用于开发Java程序。

A.Net Beans B.Eclipse C.Text Pad D.My SQL

82.you can use the-class to create an object to read input form the standard input device.
82.可以使用 the-class 创建一个对象来读取标准输入设备的输入。

A.Scanner B.Next C.reader D.scanf
A.扫描仪 B.下一页 C.阅读器 D.扫描

83.Java uses-to refer to the standard output device.
83.Java使用-指标准输出设备。

A.system.out B.system.in C.system.keyboard D.system.moniter

84.- is not a primitive type
84.- 不是原始类型

A.Boolean B.string C.short D.double
A.布尔值 B.字符串 C.短 D.双精度

85.The increment operator(++) and the decrement operator (--) increment or decrementa variable by_.
85.递增运算符(++)和递减运算符(--)递增或递减变量by_。

A.0 B.1 C.a given value D.a random value
A.0 B.1 C.给定值 D.随机值

86.you can convert a value form one type to another by-.
86.您可以通过-将一种类型的值转换为另一种类型。

A.casting B.import C.convert class D.assignment operators
A.casting B.import C.convert 类 D.赋值运算符

87.In switch-case statement, once a case is matched,the statements staring form the matched case are executed until_.
87.In switch-case 语句中,一旦匹配了案例,匹配案例中的语句就会until_执行。

A. a break statement
A. 中断语句

B.a continue statement
B.a 继续声明

C.the end of case statement
C.案件结束陈述

D.the end of the else statement
D.else 语句的结尾

88.The keyword for declaring an exception is_,and the keyword for throwing an exception is_.
88.声明异常的关键字is_,抛出异常的关键字is_。

A.throws,throw B.try ,catch C.throws,try D.catch ,throw
A.投掷,投掷 B.尝试,接球 C.投掷,尝试 D.接球,投掷

89.The index of an array begins with_.
89.数组的索引从with_开始。

A.0 B.1 C.-1 D.any given number
A.0 B.1 C.-1 D.任何给定数字

A method definition consists of the following parts except_.
方法定义由以下部分组成except_。

method name B.parameters C.return value type D.comments
方法名称 B.参数 C.返回值类型 D.注释

90.the state of an object(also known as its properties or attributes) is represented by-
90.对象的状态(也称为其属性或属性)由以下表示:

A.fields B.methods C.classes D.constants
A.字段 B.方法 C.类 D.常量

91.-is a template for objects
91.-是对象的模板

A.a class B.a package C.a constructor D.a destructor
A.a 类 B.a 包 C.a 构造函数 D.析构函数

92.to override a method,the method must be defined in the subclass using____as in its super class.
92.to 重写方法,必须在子类中定义该方法using____as在其超类中定义。

A.the same signature and the same return type B.the same name and different return type
A.相同的签名和相同的返回类型 B.相同的名称和不同的返回类型

C.the same signature and different return type D.the same name and different parameter list
C.相同的签名和不同的返回类型 D.相同的名称和不同的参数列表

93.the annotation- denotes that the annotated method is required to override a method in the superclass.
93.annotation- 表示需要 annotated 方法来覆盖超类中的方法。

A.@Override B.@suppress warning C.@super D.parent
A.@Override B.@suppress警告C.@super D.parent

94.-of a superclass are not inherited in the subclass
94.-的超类在子类中不继承

A.the constructors B.the public methods C.the protected fields D.the instance members
A.构造函数 B.公共方法 C.受保护的字段 D.实例成员

95.if a subclass of an abstract superclass does not implement all the abstract methods,the subclass must be defined as_.
95.如果抽象超类的子类没有实现所有抽象方法,则必须as_定义该子类。

A.abstract B.static C.final D.virtual
A.摘要 B.静态 C.最终 D.虚拟

96.a(an )-cannot be used to create objects
96.a(an) - 不能用于创建对象

A.abstract class B.superclass C.subclass D.string class
A.抽象类 B.超类 C.子类 D.字符串类

97.some programming language allow you to derive a subclass form several classes. This capability is known as-
97.某些编程语言允许您从多个类派生一个子类。这种能力被称为-

A.multipe inheritance B.complex inheritance C.skip-generation inheritance D.outside inheritance
A.多重继承 B.复数继承 C.跳跃生成继承 D.外部继承

98.In general,-relationship should be modeled using inheritance.
98.In 一般情况下,关系应使用继承进行建模。

A.is-a B.act-as C.have-more D.singleton
A.是-A.行为-A.行为-A.有-更多 D.单体

99.When executing a Java program,the JVM first loads the bytecode of the class to memory using a program called____.
99.执行Java程序时,JVM首先使用程序called____将类的字节码加载到内存中。

A.class loader B.source loader C.garbage collector D.bytecode verifier
A.类加载器 B.源码加载器 C.垃圾回收器 D.字节码验证器

100.____are errors that cause a program to terminate.
100.____are导致程序终止的错误。

A.Synatx errors B.Runtime errors C.Logic errors D.compile errors
A.Synatx 错误 B.运行时错误 C.逻辑错误 D.编译错误

101.The____returns true if two strings are equal,and false if they are not equal.
如果两个字符串相等,则101.The____returns true,如果它们不相等,则为 false。

A.equals method B.substring method C.compareTo method D.concat method
A.equals 方法 B.substring 方法 C.compareTo 方法 D.concat 方法

102.The part of the loop that contains the statements to be repeated is called____.
102.循环中包含要重复的语句的部分是called____。

A.the loop body B.the loop definition C.an iteration of the loop D.the loop condition
A.循环体 B.循环定义 C.循环的迭代 D.循环条件

103.The____keyword only ends the current iteration of a loop.
103.The____keyword仅结束循环的当前迭代。

A.continue B.break C.goto D.default
A.继续 B.中断 C.转到 D.默认

104.Java language provides several types of repetition statements except____.
104.Java语言except____提供了几种类型的重复语句。

A.for loop B.do-while loop C.while loop D.for-each loop
A.for 循环 B.do-while 循环 C.while 循环 D.for-each 循环

105.The following introductions to overloading methods are true except____.
105.以下对重载方法的介绍是正确的except____。

A.Overloading methods can make programs clearer and more readable.
A.重载方法可以使程序更清晰,更具可读性。

B.Overloaded methods must have different parameter lists.
B.重载方法必须具有不同的参数列表。

C.Overloaded methods must have different return types.
C.重载方法必须具有不同的返回类型。

D.Overloaded methods must have a same name.
D.重载方法必须具有相同的名称。

106.A____method does not return a value.
106.A____method 不返回值。

A.void B.char C.int D.double

107.An object is_____of a class.
107.类is_____of对象。

A.an instance B.a child C.a copy D.an exception
A.实例 B.子实例 C.副本 D.异常

108.The scope of instance and static variables is _____.
108.实例变量和静态变量的范围是_____。

A.the entire class
A.全班同学

B.from the positions where the variables are declared to the end of the class
B.从声明变量的位置到类的末尾

C.from the positions where the variables are declared to start of the class
C.从声明变量的位置到类的开始

D.assigned by the programmer
D.程序员分配

109.Passing an object to a method is to pass___.
109.将对象传递给方法就是pass___。

A.the reference of the object
A.对象的引用

B.a copy of the object
B.对象的副本

C.the name of the object
C.对象名称

D.the object itself
D.对象本身

110.An objects data and methods can be accessed through the ____ operator via the objects reference variable.
110.对象数据和方法可以通过 ____ 运算符通过对象参考变量进行访问。

A.dot(.) B.comma(,) C.single quotes() D.backlash(\)
A.点(.)B.逗号(,) C.单引号() D.背隙(\)

111.Object-oriented programming allows you to define new classes from existing classes.This is called____.
111.面向对象编程允许您从现有类定义新类。这是called____。

A.inheritance B.abstraction C.encapsulation D.polymorphism
A.继承 B.抽象 C.封装 D.多态性

112.you can use____ to prevent classes from being extended.
112.您可以use____以防止课程被延长。

A.final keyword B.const keyword C.multiple inheritance D.annotation
A.final关键词 B.const关键词 C.多重继承 D.注解

113.If a static method defined in the superclass is redefined in a subclass,the method defined in the superclass is___.
113.如果在子类中重新定义了在超类中定义的静态方法,则在超类中定义的方法is___。

A.hidden B.overridden C.overloadden D.inherited
A.隐藏 B.覆盖 C.重载 D.继承

The key word super can be used____.
关键词“超级”可以used____。

to call a superclass constructor
调用超类构造函数

To call static superclass methods
调用静态超类方法

To call subclass members
调用子类成员

To define a new method in a superclass
在超类中定义新方法

115.____is an integrated development environment for rapidly developing programs.
115.____is用于快速开发项目的集成开发环境。

A Eclipse B Java API C JDK D JRE

116.To run a Java class from the command line, use the____ command.
116.To 从命令行运行 Java 类,请使用 the____ 命令。

A java B javac C javap D javar

117.An____is a construct that enables a program to specify alternative paths of execution.
117.An____is一种构造,使程序能够指定替代执行路径。

A if statement B switch statement C for statement D.while statement
A if 语句 B 将语句 C 切换为语句 D.while 语句

118.The part of the loop that contains the statements to be repeated is called_____.
118.循环中包含要重复的语句的部分是called_____。

A the loop body B the loop definition C an iteration of the loop D the loop condition
A 循环体 B 循环定义 C 循环的迭代 D 循环条件

119. In Java, floating-point literals have a default type of____
119在 Java 中,浮点文字具有默认类型of____
.

A.int B.double C.char D. float

120.In the following identifiers,____ is invalid.
120.In 以下标识符,____ 无效。

A.myCar B.long C.at 3 rooms D.continue
AmyCar Blong Cat 3 rooms D继续

121. You can create an array by using the____ operator
121. 您可以使用 the____ 运算符创建数组

A new B set C this D assignment (=)
A 新 B 集 C 此 D 赋值 (=)

122.If a class is immutable, then all its data fields must be ___and it cannot contain public setter methods for any data fields.
122.如果一个类是不可变的,那么它的所有数据字段都必须___and它不能包含任何数据字段的公共 setter 方法。

A private B final C static D protected
A 私有 B 最终 C 静态 D 受保护

123. The keyword___ refers to the superclass and can be used to invoke the superclass smethods and constructors.[2分]
123. keyword___是指超类,可用于调用超类方法和构造函数。[2分]

A super B this C parent D me
A 超 B 这个 C 父母 D 我

124.Private data fields in a superclass____
124.superclass____中的私有数据字段
.

A are accessible outside the class
A 可在课外访问

B can be used directly in a subclass
B 可以直接在子类中使用

C can be accessed through public methods defined in the superclass
C 可以通过超类中定义的公共方法来访问

D are forbidden if you need extend the superclass
如果需要扩展超类,则禁止 D

If a static method defined in the superclass is redefined in a subclass, the method defined in the superclass is____
如果在子类中重新定义了在超类中定义的静态方法,则在超类中定义的方法is____

A hidden B overridden C overloadden D inherited
A 隐藏 B 覆盖 C 重载 D 继承

An interface can extend____
接口可以extend____

A one or more interfaces
一个或多个接口

B nonabstract interfaces
B 非抽象接口

C one or more classes
C 一个或多个类

D only one class
D 仅一类

127.Software contains the__ that tell a computerized device what to do
127.软件包含告诉计算机化设备做什么的the__

A instructions B languages C working flow D Java
A 指令 B 语言 C 工作流程 D Java

128.The Java program is executed from_
128.Java程序from_执行

A the main method
一、主要方法

B any method
B 任意方法

C the first method in main class D the last method in main class
C 主类中的第一个方法 D 主类中的最后一个方法

Before creating Java programs in Eclipse,you need to first create -to hold all files
在Eclipse中创建Java程序之前,您需要先创建-以保存所有文件
.
A a project B a class C a folder D a workspace
A 项目 B 类 C 文件夹 D 工作区

The operators in expressions are evaluated in the order determined by the following rules except _
表达式中的运算符按以下规则确定的顺序计算,但 _

A parentheses B operator precedence
A 括号 B 运算符优先级

C operator associativity D operator appearance
C 运算符关联性 D 运算符外观

A named constant is declared by using the keyword_
命名常量是使用 keyword_ 声明的

A final B const C.constant D finally
A 最后的 B 常数 C.常数 D 最后

132.The while loop and for loop are called-because the continuation conditions checked before the loop.
132.调用 while 循环和 for 循环,因为在循环之前检查了延续条件。

A pretest loops B posttest loop
A 前测试循环 B 后测试循环

C infinite loops D basic loops
C 无限循环 D 基本循环

133.Java language provides several types of repetition statements except__ .
133.Java语言提供了几种类型的重复语句except__。

A for loop B do-while loop C while loop D for-each loop
A 表示循环 B do-while 循环 C 而循环 D for each 循环

A variable _ before I can be assigned a value.
变量 _ 之前可以被评估为一个值。

A must be declared B is set to null
必须声明 A 设置为 null

C has no scope D will be assigned to zero
C 没有作用域 D 将赋值为零

135.The arguments are passed_to parameters when invoking a method.
135.在调用方法时,参数passed_to参数。

A by value B byname C by reference D by handle
A 按值 B 按名称 C 按引用 D 按句柄

136.In the following statements about classes and objects,_is wrong.
136.In 以下关于类和对象的陈述,_is错误的。

A.Classes are definitions for objects.
A.类是对象的定义。

B Objects are created from classes.
B 对象是从类创建的。

C. An object is the instance of a given class.
C. 对象是给定类的实例。

D One object can be created from several classes.
D 可以从多个类创建一个对象。

137.The keyword -refers to the object itself.
137.关键字-是指对象本身。

A this B me C current D obj
A 这个 B 我 C 当前 D obj

138.__represents an entity in the real world that can be distinctly identified.
138.__represents现实世界中可以清晰识别的实体。

A An object B A class C A method D A field
A A 对象 B A 类 C A 方法 D A 字段

Constructor are a special kind of method.They have some peculiarities except_.
构造函数是一种特殊的方法。它们except_有一些特点。

A A constructor must have the same name as the class itself.
A 构造函数必须与类本身同名。

B Constructors do not have a return type-not even void.
B 构造函数没有返回类型,甚至没有 void。

Constructors are invoked using the new operator when an object is created.
创建对象时,使用 new 运算符调用构造函数。

D A constructor must have at least one statement to initialize static fields.
D 构造函数必须至少有一个语句来初始化静态字段。

140.A class can implement multiple__
140.A类可以实现multiple__

A interfaces B superclasses
A 接口 B 超类

C abstract classes D data types
C 抽象类 D 数据类型

141.an abstract method-
141.一种抽象方法-

can not be contained in a nonabstract class
不能包含在非抽象类中

Can not be contained in an interface
不能包含在接口中

Can be contained in a concrete class
可以包含在具体类中

Can be annuonced as private
可以作为私有

If no superclass is specified when a class is defined,_
如果在定义类时未指定超类,_

A its superclass is Object
A 它的超类是 Object


B its superclass is NULL
B 其超类为 NULL

C it has no superclass
C 它没有超类

D it is illegal in Java
D 它在 Java 中是非法的

The following statements are true except__ .
以下陈述except__是正确的。

A An instance method can be overridden only if it is accessible.
答:实例方法只有在可访问时才能被覆盖。

B A private method cannot be overridden.
B 不能重写私有方法。

C Like an instance method, a static method can be inherited.
C 与实例方法一样,静态方法可以继承。

D A static method can be overridden.
D 可以重写静态方法。

144.you can use_to prevent classes from being extended.
144.您可以use_to阻止课程扩展。

A final keyword B const keyword
最后一个关键字 B const 关键字

C multiple inheritance D annotation
C 多重继承 D 标注

145. You can use_to test whether an object is an instance of a class.
145. 您可以use_to测试对象是否是类的实例。

A obj instance of A Class B obj is A Class
A 类 B obj 的 obj 实例是 A 类

C A Class is obj D A Class instance of obj
C A 类是 obj D 类 obj 的类实例




146. Java programs can be run from a Web browser.Such programs are called .[2分]
146. Java 程序可以从 Web 浏览器运行。这样的程序称为[2分]

A applets
小程序

B applications
B 应用

C agents
C 代理

D HTML

147..In the following groups, all identifiers of are keywords.[2分]
147.In 以下组中,所有标识符都是关键字。[2分]

A case, catch, private, goto
案例,捕捉,私人,转到

B import, implement, this, else
B 导入、实现、这个、否则

C integer, default, assert, public
C 整数、默认值、断言、公共

D native, interface, me, for
D 原生、接口、我、为

148.You can use to obtain a random double value between 0.0 and 1.0, excluding 1.0.[2分]
148.可用于获得0.0和1.0之间的随机双精度值,不包括1.0。[2分]

A Math.random()
一个 Math.random()

B Math.rand()
B 数学.rand()

C Math.srand()
C 数学.srand()

D Math.round()
D 数学回合()

149.Characters can be compared based on their using the relational operators.[2分]
149.可以使用关系运算符对字符进行比较。[2分]

A Unicode
一个 Unicode

B ASCII

C GBK
C GBK系列

D utf-8

150.The class is used to write text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings. [2分]
150.该类用于将文本写入字符输出流,缓冲字符,以便有效地写入单个字符、数组和字符串。[2分]

A FileReader
文件阅读器

B FileWriter
B 文件编写器

C BufferedReader

D BufferedWriter
D 缓冲写入器

151.The keyword for declaring an exception is , and the keyword for throwing anexception is .[2分]
151.声明异常的关键字是,抛出异常的关键字是。[2分]

A throws, throw
一个投掷,投掷

B try, catch
B 尝试,捕捉

C throws, try
C投掷,试试

D catch, throw
D 接球、投掷

152.A static variable is .[2分]
152.静态变量是 。[2分]

A shared by all objects of the class
由类的所有对象共享

B owned by only one object of the class
B 仅由类的一个对象拥有

C a variable defined in main class
C 主类中定义的变量

D a field of the class, which defined as static
D 类的字段,定义为静态

153.A static method of the class.[2分]
153.类的静态方法[2分]

A cannot access instance members
A 无法访问实例成员

B cannot access static members
B 无法访问静态成员

C can access any members
C 可以访问任何成员

D can only access static fields
D 只能访问静态字段

154.The following statements are true except .[2分]
154.以下陈述均属实,但 .[2分]

A An instance method can be overridden only if it is accessible.
答:实例方法只有在可访问时才能被覆盖。

B A private method cannot be overridden.
B 不能重写私有方法。

C Like an instance method, a static method can be inherited.
C 与实例方法一样,静态方法可以继承。

D A static method can be overridden.
D 可以重写静态方法。


14. The returns true if two strings are equal, and false if they are not equal.
14. 如果两个字符串相等,则返回 true,如果它们不相等,则返回 false。

A. equals method
A. 等于方法

B. substring method
B. 子字符串法

C. compareTo method
C. compareTo 方法

D. concat method
D. concat法

18. In the following identifiers, is invalid.
18. 在以下标识符中,是无效的。

A. myCar
A. 我的车

B. _long

C. at_3_rooms

D. continue
D. 继续

24. The Scanner class is in the package.[2分]
24. Scanner 类在包中。[2分]

A. java.util

B. java.io

C. java.lang

D. java.iostream

31. It is better to invoke static methods by using .[2分]
31. 最好使用 调用静态方法。[2分]

A. ClassName.method
A. ClassName.方法

B. ObjectName.method
B. ObjectName.方法

C. PackageName.method
C. PackageName.方法

D. ProjectName.method
D. ProjectName.方法

39. The keyword super can be used .[2分]
39.可以使用关键字super。[2分]

A. to call a superclass constructor
A. 调用超类构造函数

B. to call static superclass methods
B. 调用静态超类方法

C. to call subclass members
C. 调用子类成员

D. to define a new method in a superclass
D. 在超类中定义新方法

40. An abstract class ,[2分]
40. 一个抽象类,[2分]

A. can be instantiated using the new operator
A. 可以使用 new 运算符实例化

B. cannot have constructors
B. 不能有构造函数

C. can have static abstract methods
C.可以有静态的抽象方法

D. can be inherited
D.可以遗传

42. If no superclass is specified when a class is defined, .[2分]
42. 如果在定义类时未指定超类,则 .[2分]

A. its superclass is Object
A. 它的超类是 Object

B. its superclass is NULL
B. 它的超类为 NULL

C. it has no superclass
C.它没有超类

D. it is illegal in Java
D. 在爪哇是非法的

2.You save a Java program in a .[2分]
2.将 Java 程序保存在 .[2分]

A .java file
.java文件

B .exe file
B .exe 文件

C .class file
C .class 文件

D .obj file
D .obj 文件

6.The contains predefined classes and interfaces for developing Java programs.[2分]
6.包含用于开发Java程序的预定义类和接口。[2分]

A application program interface
应用程序接口

B language specification
B 语言规范

C Java Development Toolkit
C Java 开发工具包

D integrated development environment
D 集成开发环境

9.are errors that cause a program to terminate abnormally.[2分]
9.是导致程序异常终止的错误。[2分]

A Syntax errors
语法错误

B Runtime errors
B 运行时错误

C Logic errors
C 逻辑错误

D compile errors
D 编译错误

The Java programming language defines the following kinds of variables except .[2分]
Java 编程语言定义了以下类型的变量,但 .[2分]

A Instance Variables (Non-Static Fields)
实例变量(非静态字段)

B Class Variables (Static Fields)
B 类变量(静态字段)

C Logical Variables
C 逻辑变量

D Parameters
D 参数

40.___means that a variable of a supertype can refer to a subtype object.[2分]
40.___means超类型的变量可以引用子类型对象。[2分]

A Polymorphism
多态性

B Inheritance
B 继承

C Abstraction
C 抽象

D Encapsulation
D 封装



image iconGPT