OCUP 2 Found. · OMG · UML Behavior: Use Case, Activity, Sequence & State · Bank updated 2026-07-02
OCUP 2 Found. practice questions: UML Behavior: Use Case, Activity, Sequence & State
5 free questions from 119 on this area · answer and explanation for each · no sign-up
These 5 questions come from the UML Behavior: Use Case, Activity, Sequence & State section of our OCUP 2 Found. bank (119 questions on this area). Every question is original, with the correct answer explained and linked to the source it is drawn from.
1/5 · UML Behavior: Use Case, Activity, Sequence & State · easy
A use case diagram shows a rectangle labeled 'Online Banking System' containing several ovals such as 'Transfer Funds' and 'Pay Bill', with actor figures drawn outside the rectangle and connected to the ovals by lines crossing the rectangle's edge. What does the rectangle represent?
AAn actor representing the system itself, distinct from the ovals which represent its internal components.
BA composite use case that includes each of the ovals inside it via an implicit include relationship.
CThe subject (system under consideration), whose boundary encloses its use cases; actors are external and are therefore placed outside it.
DA generalization set grouping the actors that participate in the enclosed use cases.
Show answer & explanation
C is correct. In UML 2.5, the subject (the system, subsystem, or class under consideration) is optionally shown as a rectangle whose name appears inside or on top, with its use cases drawn inside the boundary. Actors, being external roles that interact with the subject, are placed outside the rectangle, and associations cross the boundary to link them to the relevant use cases.
↗ UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
2/5 · UML Behavior: Use Case, Activity, Sequence & State
On an object flow edge between 'Ship Order' and 'Close Order', a rectangle is placed labeled 'Order' with the text '[shipped]' shown beneath the name. What does the bracketed text represent?
AA guard condition on the control flow edge that determines whether 'Close Order' will execute at all.
BThe state that the Order object must be in at that point in the flow, as required by the UML 2.5 notation for showing object state on an object node.
CThe multiplicity of the object node, indicating how many Order instances may flow along that edge simultaneously.
DThe name of the activity partition (swimlane) that the 'Order' object node belongs to.
Show answer & explanation
3/5 · UML Behavior: Use Case, Activity, Sequence & State
A modeler wants an object to handle the event 'refresh' while remaining in state 'Editing', without ever exiting or re-entering that state and without invoking its entry or exit behaviors. Which approach correctly achieves this in UML 2.5 notation?
AAdd a guard to the self-transition arrow so that it only fires when the object is 'still' in Editing, which prevents entry/exit behaviors from running.
BDraw a self-transition arrow leaving Editing and returning to Editing, labeled 'refresh / recalcTotals()'.
CNest a composite substate inside Editing and target the transition at that substate instead of at Editing itself, which avoids invoking Editing's own entry/exit behaviors.
DList 'refresh / recalcTotals()' inside Editing's own state symbol compartment (alongside any entry/exit/do entries), as an internal transition; no arrow is drawn and neither the entry nor exit behavior is invoked.
Show answer & explanation
D is correct. UML 2.5 provides internal transitions specifically for handling events while remaining in the same state without side effects on entry/exit behavior; they are notated textually inside the state's compartment rather than as a drawn arrow. Using a self-transition arrow instead changes the semantics because, unless explicitly marked internal, a self-transition is external and does trigger exit/entry actions.
↗ UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
4/5 · UML Behavior: Use Case, Activity, Sequence & State · hard
A token arrives at a decision node that has exactly two outgoing edges, guarded [amount > 100] and [amount < 0]; neither edge is marked [else]. The token carries amount = 50, so neither guard evaluates to true. According to UML 2.5 semantics, what happens?
AThe decision node substitutes the nearest numeric guard boundary and treats amount as satisfying [amount > 100].
BUML tooling is required to synthesize an implicit else edge at runtime that silently discards the token.
CThe token is automatically routed onto whichever outgoing edge happens to be drawn first in the diagram.
DNo outgoing edge is enabled, so the token is not offered on either edge; it is the modeler's responsibility to construct guards (or add an else edge) so this situation cannot occur.
Show answer & explanation
5/5 · UML Behavior: Use Case, Activity, Sequence & State
On a sequence diagram, a frame labeled 'ref' containing only the name 'ValidatePayment' spans one or more lifelines. What does this notation represent?
AAn interaction use, which invokes another, separately defined interaction (e.g., a sequence diagram named ValidatePayment) at that point, so its messages are treated as occurring inline without redrawing them.
BA guard condition that must be satisfied before any subsequent messages on the spanned lifelines can be sent, functionally identical to an 'opt' combined fragment.
CA comment attached to the lifelines it spans, purely for documentation purposes, with no effect on the semantics of the interaction.
DA required stereotype indicating that the spanned lifelines represent abstract classifiers that cannot be instantiated during execution.
Show answer & explanation
A is correct. A frame labeled 'ref' is an interaction use: it references another Interaction defined elsewhere and represents that interaction's occurrence at that point in the enclosing diagram. This keeps complex diagrams readable by allowing common or detailed sub-interactions to be factored out and reused.
↗ UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
Other OCUP 2 Found. areas
The same kind of free sample for every other section of the OCUP 2 Found. bank:
Study UML Behavior: Use Case, Activity, Sequence & State with instant feedback
6 free questions · filter study mode by area and difficulty · error log with spaced repetition · no card, no dumps, no ads.
Create your free account →
ExamDeck is an independent study tool, not affiliated with, endorsed by, or sponsored by OMG. OCUP 2 Found. and related marks are trademarks of their respective owners, used for identification only. Exam facts checked against official OMG materials (as of August 2026); always confirm current details with the vendor before booking.