OMG-OCUP2-INT200 practice question 2 of 10

What is NOT true about a roles and role bindings?

Full set: 136 questions
Answer options
A: A role binding is an association. Correct answer
B: A role binding maps a connectable element to a role in a collaboration occurrence.
C: The same object may play roles in multiple collaborations.
D: A role typed by an interface specifies a set of features required by a participant in a collaboration.
E: The same connectable element may be bound to multiple roles in a single collaboration occurrence.
Correct Answer:
A. A role binding is an association.
Explanation

In UML 2.5.1, a role binding (roleBinding) in a CollaborationUse is defined as a Dependency relationship, not an Association. A role binding maps a ConnectableElement (such as a property or port) of a structured classifier to a role (part) defined within the target Collaboration. Because a role binding is a Dependency, statement A is false and thus the correct answer to this negative-query question.

Why Incorrect

B: This is a correct statement describing the exact purpose and mapping of a role binding within a collaboration use. C: This is a correct statement; a model element/object can participate in and play roles across multiple collaborations. D: This is a correct statement; typing a role with an interface defines the required features required from any participant bound to that role. E: This is a correct statement; one connectable element can be bound to more than one role in a single collaboration occurrence.

References

- Object Management Group (OMG). (2015). OMG Unified Modeling Language (OMG UML)

Version 2.5.1

Section 11.7.3.1 (CollaborationUse - Semantics)

pp. 217-219. https://www.omg.org/spec/UML/2.5.1/

Scroll to Top