1.
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, methods, and constants
(d) name, attributes, and methods
Correct answer is
(d)
2.
UML class diagrams can describe which of the following?
I. The internal structure of classes
II. Relationships between classes
(a) None
(b) I and II
(c) I only
(d) II only
Correct answer is
(b)
3.
Consider the following UML class diagram.
According to the diagram, which of the following statements is true?
(a) ClassB and ClassC are both subclasses of ClassA.
(b) ClassB has a one-to-one association with ClassA and a one-to-many association with
ClassC.
(c) ClassA and ClassB each contain at least one reference to an instance of ClassC.
(d) ClassA is composed of one instance of ClassB and one or more instances of ClassC.
Correct answer is
(d)
4.
The multiplicity of an association between two classes indicates the number of
(a) times that one class's methods are called by the other class
(b) methods and variables common to both classes
(c) instances of one class that can be associated with an instance of the other class
(d) methods of one class that are called by the other class
Correct answer is
(c)
5.
A relationship that exists between two specific instances of an object is known as a(n)