Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
UML associations relate classifiers (such as classes) and are drawn as lines between them. Each end of an association is called a role (or association end) and can have multiplicity, navigability, and role names. The question asks whether each association has two or more roles.
Given Data / Assumptions:
Concept / Approach:
By definition, an association has at least two ends; otherwise there is no relationship. In UML, each end is an AssociationEnd with its own multiplicity and properties. Thus every association has two or more roles. There is no meaningful one-ended association in standard UML.
Step-by-Step Solution:
Verification / Alternative check:
Inspect UML metamodel: Association::memberEnd is a collection with size ≥ 2.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing roles with attributes; overlooking that role names are optional even though roles (ends) always exist.
Final Answer:
Correct
Discussion & Comments