栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Java基础知识英文选择题4——UML

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Java基础知识英文选择题4——UML

1. Consider the following UML class diagram, according to the diagram, which of the following statements is true?

 

A. ClassA and classB each contain at least one reference to an instance of classC.

B. ClassB and classC are both subclass of classa.

C. ClassA is composed of one instance of classB and one or more instances of classC.

D. ClassB has one-to-one association with classA and a one-to-many association with classC.

Correct Answer : C

2. A relationship that exists between two specific instances of an object is known as a(n)__?

A. Aggregation

B. Specilization

C. Association

D. Link

Correct Answer : D

3. 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 iii only

Correct Answer : A

4. 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

Correct Answer : A

5. The static model of a software system typically 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

Correct Answer : B

6. Consider the following UML class diagram, which of the following is(are) true about the system described by the diagram.

 

i. an instance of picture can contain a collection of instance 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

Correct Answer : B

7. 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

Correct Answer : D

8. A collection typically models a____relationship.

A. one-to-one

B. zero-to-one

C. many-to-many

D. one-to-many

Correct Answer : D

9. Which of the following is true about association and aggregation in UML class diagrams?

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.

Correct Answer : D

10. In a UML class diagram's representation of a class, the top, middle, and lower 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.

Correct Answer : C

(部分题目来源于网络,如有侵权,请联系文章作者删除。)  

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/979256.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号