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
(部分题目来源于网络,如有侵权,请联系文章作者删除。)