View Assessment Result: Multiple-Choice Quiz 2

本文解析了UML类图的基本概念及其应用场景,包括类图中各部分的含义、类之间的关系类型,以及如何通过类图描述类的内部结构和相互间的关系。

UML class diagrams can describe which of the following?

   1. The internal structure of classes
   2. Relationships between classes
(a) I only
(b) I and II
(c) None
(d) II only
Correct answer is     (b)

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) name, attributes, and methods
(c) attributes, methods, and constants
(d) name, methods, and constants

Correct answer is     (b)

A relationship that exists between two specific instances of an object is known as a(n)
(a) aggregation
(b) link
(c) association
(d) specialization

Correct answer is     (b)

A binary association is said to exist between two classes when
(a) one class belongs to the same package as the other class
(b) one class is a subtype of the other class
(c) an object of one class is instantiated in the same method as an object of the other class
(d) an object of one class requires an object of the other class

Correct answer is     (d)

Consider the following UML class diagram.
 
The diagram describes a
(a) class without methods
(b) self-containing class
(c) one-to-one relationship
(d) relationship between a subclass and a superclass

Correct answer is     (b)

Consider the following UML class diagram.
 
According to the diagram, which of the following statements is (are) true?

   1. ClassB is a specialization of ClassA.
   2. ClassA is a generalization of ClassC.
   3. ClassC is involved in a self-containment loop.
(a) I, II, and III
(b) I and II only
(c) I and III only
(d) II and III only
Correct answer is (a)

A collection typically models a _____ relationship.
(a) zero-to-one
(b) many-to-many
(c) one-to-one
(d) one-to-many

Correct answer is     (d)

If a class has an association with itself, then the class contains
(a) a method that calls itself
(b) a method that calls another method within the same class
(c) an attribute that references an object of the same class
(d) its own superclass

Correct answer is     (c)

When using noun-phrase analysis to model a software system, which of the following should typically be eliminated from the list of potential classes?

   1. References to the software system itself
   2. Nouns that imply roles between objects
   3. Synonyms to other nouns in the list
(a) III only
(b) II and III only
(c) I and III only
(d) I, II, and III

Correct answer is     (d)

An object model describes which of the following?

   1. Attributes of classes
   2. Methods of classes
   3. Relationships between classes
(a) I and II only
(b) I, II, and III
(c) I and III only
(d) II and III only

Correct answer is     (b)

转载于:https://www.cnblogs.com/vivizhyy/archive/2008/11/15/3394925.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值