java 英文基础测试

来源:互联网 发布:徕卡ts09上传数据 编辑:程序博客网 时间:2024/05/02 09:40
Date:July 13, 2010 00:41Your Grade:F (Fail)Test Taken By:shp2010Passing Score:24 out of 30Your Score:12Test Result:FAILED

 

Scores by Chapters

Inheritance  42.86 % 
AWT & Applets  39.13 % 


Correct Questions (12 / 30)

1. Classes can implement methods and contain variables that are not constants

Answer: True

2. A method is overridden if there is a method in the subclass that has the same name and the ________ set of parameters.

Answer: Same

3. subclass is the class that does the inheriting (the child class)

Answer: True

4. The content pane is the main container in JApplet, JDialog, and JFrame objects.

Answer: True

5. Implementing an interface and extending a class are the two ways of creating threads

Answer: True

6. Extending a class is the way Java inherits methods and variables from a parent class.

Answer: True

7. Java I/O is based on the concept of _________

Answer: Streams

8. A method in Java, that calls itself is said to be recursive.

Answer: True

9. Swing's text components display text and optionally allow the user to edit the text

Answer: True

10. Inheritance interacts with encapsulation also.

Answer: True

11. Through the use of inheritance, programmers can reuse the code in the superclass many times.

Answer: True

12. If you want to mix fonts or colors within the text, or to have formatting such as multiple lines, you can use HTML

Answer: True

 

Incorrect Questions (18 / 30)

1. ________ enhance performance and functionality in various programming languages

Answer: threads

2. An interface contains _________ methods

Answer: Un-implemented

3. A single-line comment begins with a ________ and ends at the end of the line

Answer: //

4. Each subclass ________ state (in the form of variable declarations) from the superclass

Answer: Inherits

5. _________ can display and edit multiple lines of text

Answer: JtextArea

6. __________ code segments must be implemented for an event handler.

Answer: Three

7. _________ is used to destroy the objects created by the constructor methods.

Answer: finalize()

8. Which of the following will change to the next directory above the current directory?

Answer: none of the above

9. _________ are light-weight components

Answer: Swings

10. Swing provides ________ text components

Answer: Six

11. The term _____________ refers to a class's direct ancestor or to any of its ascendant classes.

Answer: Super Class

12. Java doesnot support Multiline comment

Answer: False

13. The concept of polymorphism is often expressed by the phrase

Answer: One interface, multiple methods

14. ________ text component is best suited for controlling the format of a single line of user-entered text?

Answer: JformattedTextField

15. A thread is a program's path of execution

Answer: True

16. AWT uses native ________ components

Answer: GUI

17. Java supports multiple inheritance

Answer: False

18. We can buffer a RandomAccessFile

Answer: False

原创粉丝点击