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

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

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值