ssd3选择题汇总_开始复习吧

上传人:suns****4568 文档编号:89395918 上传时间:2019-05-24 格式:PDF 页数:31 大小:312.40KB
返回 下载 相关 举报
ssd3选择题汇总_开始复习吧_第1页
第1页 / 共31页
ssd3选择题汇总_开始复习吧_第2页
第2页 / 共31页
ssd3选择题汇总_开始复习吧_第3页
第3页 / 共31页
ssd3选择题汇总_开始复习吧_第4页
第4页 / 共31页
ssd3选择题汇总_开始复习吧_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《ssd3选择题汇总_开始复习吧》由会员分享,可在线阅读,更多相关《ssd3选择题汇总_开始复习吧(31页珍藏版)》请在金锄头文库上搜索。

1、Multiple-Choice Quiz 1 1. Which method must exist in every Java application? (a) main (b) paint (c) begin (d) init 2. Which of the following is the string concatenation operator in Java? (a) + (b) (c) int y = 2; System.out.println(x + y); (a) 7 (b) 5 2 (c) 5+2 (d) 52 6. What is the right way to hand

2、le abnormalities in input on Java? (a) By handling these problems by providing exception handlers (b) By writing while loops to guard against bad input (c) By using the class FileFilter which gracefully filters out bad input data (d) By always specifying the throws clause in every method header wher

3、e file I/O is performed 7. All Java exception classes are derived from the class (a) java.lang.Throwable (b) java.lang.Error (c) java.io.IOException (d) java.lang.RuntimeException 8. According to Javadoc convention, the first sentence of each Javadoc comment should be (a) an version tag (b) the orde

4、r of lines is not important (c) an author tag (d) a summary sentence of the declared entry 9. According to the document entitled Code Conventions for the Java Programming Language, file suffixes used by Java software include which of the following? I. .obj II. .class III. .h (a) I and III only (b) I

5、I and III only (c) I and II only (d) II only 10. A stack trace is (a) a sequence of method calls (b) only available through a typical debuggers step into feature (c) a fatal error that causes a typical debugger to terminate (d) a list of variables allocated on a programs stack 11The name of a Java s

6、ource file 选择一个答案 a. has no restrictions b. must be the same as the class it defines, ignoring case c. must use the extension .class d. must be the same as the class it defines, respecting case 12.A tool that allows programmers to execute lines of a program one line at a time in order to help locate

7、 the source of a programs errors is known as a 选择一个答案 a. exception handler b. stack trace c. scope d. debugger 13.Which of the following statements is true of the conventions outlined by Sun Microsystems in the document entitled Code Conventions for the Java Programming Language?。 I They define a st

8、andard interface definition language that must be used for all Java classes. II They provide recommendations intended to make source code easier to read and understand. III They describe one mechanism for network communication between Java and C+ programs. 选择一个答案 a. II only b. I, II, and III c. I an

9、d III only d. III only Multiple-Choice Quiz 2 1. UML class diagrams can describe which of the following? I. The internal structure of classes II. Relationships between classes (a) I and II (b) None (c) II only (d) I only 2. In a UML class diagrams representation of a class, the top, middle, and lowe

10、r rectangular compartments respectively describe the _ of the class. (a) attributes, methods, and name (b) attributes, methods, and constants (c) name, attributes, and methods (d) name, methods, and constants 3. A collection typically models a _ relationship. (a) one-to-one (b) zero-to-one (c) many-

11、to-many (d) one-to-many 4. A relationship that exists between two specific instances of an object is known as a(n) (a) aggregation (b) specialization (c) association (d) link 5. Consider the following UML class diagram. According to the diagram, which of the following statements is true? (a) ClassA

12、and ClassB each contain at least one reference to an instance of ClassC. (b) ClassB and ClassC are both subclasses of ClassA. (c) ClassA is composed of one instance of ClassB and one or more instances of ClassC. (d) ClassB has a one-to-one association with ClassA and a one-to-many association with C

13、lassC. 6. Consider the following UML class diagram. The diagram describes a (a) class without methods (b) relationship between a subclass and a superclass (c) one-to-one relationship (d) self-containing class 7. Which of the following is true about association and aggregation in UML class diagrams?

14、(a) Association and aggregation have no meaningful relationship. (b) Association is a special form of aggregation. (c) Association is the opposite of aggregation. (d) Aggregation is a special form of association. 8. Consider the following UML class diagram. Which of the following is (are) true about

15、 the system described by the diagram? I. An instance of Picture can contain a collection of instances of the class Shape. II. An instance of Shape can contain a collection of instances of the class Picture. (a) None (b) I only (c) II only (d) I and II 9. The static model of a software system typical

16、ly includes which of the following? I. Attributes of classes II. Actions that occur between classes III. Structural relationships between classes (a) II and III only (b) I and III only (c) I, II, and III (d) I and II only 10. An object model describes which of the following? I. Attributes of classes II. Methods of classes III. Relationships between classes (a) I, II, and III (b) I and II only (c) II and III only (d) I and

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号