Home › OCUP 2 Found. › Practice questions › UML Behavior: Use Case, Activity, Sequence & State
OCUP 2 Found. · OMG · UML Behavior: Use Case, Activity, Sequence & State · Bank updated 2026-10-27

OCUP 2 Found. practice questions: UML Behavior: Use Case, Activity, Sequence & State

5 free questions from 123 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 (123 questions on this area). Every question is original, with the correct answer explained and linked to the source it is drawn from.

Try 6 free OCUP 2 Foundation questions → All OCUP 2 Found. sample questions

Free: 6 questions in study mode, no card. All 123 UML Behavior: Use Case, Activity, Sequence & State questions and the full OCUP 2 Found. bank: $15 one-time.

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 the internal components that the system is built from.
BA composite use case that includes each oval inside it through an implicit include relationship, so actors reach it from outside.
CThe subject (system under consideration), whose boundary encloses its use cases; actors are external, so they are placed outside it.
DA generalization set grouping the actors that participate in the enclosed use cases into one abstract actor for the system.
Answer: C. 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. Source: UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
2/5 · UML Behavior: Use Case, Activity, Sequence & State
A modeler wants to show, for each action in an activity, both which department is responsible (Sales, Finance) and which system executes it (CRM, ERP). Which UML 2.5 notation option best supports showing both dimensions on a single diagram?
AA single one-dimensional swimlane, with the department and system names concatenated into one partition label per lane.
BA two-dimensional activity partition: a matrix of rows and columns, one dimension for department and one for system.
CTwo separate, unrelated activity diagrams, since UML 2.5 activity partitions can only ever represent one classifying dimension at a time.
DAn interruptible activity region for each department, with the system indicated by the color of the action's border.
Answer: B. UML 2.5 allows activity partitions to be arranged as a two-dimensional grid, where rows represent one classifying dimension (e.g., department) and columns represent another (e.g., system), letting a single action's placement convey both simultaneously. Source: UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
3/5 · UML Behavior: Use Case, Activity, Sequence & State · easy
In the transition label syntax 'trigger [guard] / effect', what role does the guard play?
AIt names the event that must occur for the transition to be considered; the transition fires only when that named event is dispatched.
BIt is continuously monitored independent of any event, and the transition fires the instant the expression becomes true, even if the named trigger has not occurred.
CIt is a boolean expression that is evaluated at the moment the trigger's event occurs; the transition fires only if the expression evaluates to true at that moment.
DIt is an action that is always executed after the transition has fired, updating the object's attributes before the target state is entered.
Answer: C. A guard is a boolean condition placed in square brackets on a transition; when a trigger is present, the guard is only evaluated once that trigger's event occurs, and the transition fires only if the guard is true at that point. Confusing the guard with the effect or the trigger, or assuming it is polled continuously, are common misunderstandings. Source: UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
4/5 · UML Behavior: Use Case, Activity, Sequence & State · easy
A state in a UML 2.5 state machine has an internal transition defined for the trigger 'update'. When the 'update' event occurs while the state machine is in that state, which of the following correctly describes what happens to the state's entry and exit behaviors?
AThe entry behavior runs again, but the exit behavior is skipped.
BThe exit behavior runs first, then the internal transition's effect, then the entry behavior runs again.
CThe exit behavior runs, but no entry behavior runs afterward because the state machine remains in the same state.
DNeither the exit behavior nor the entry behavior of the state is executed; only the internal transition's effect (if any) runs.
Answer: D. An internal transition responds to a trigger without leaving the enclosing state, so it never invokes the state's exit or entry behaviors — only its own effect (if any) executes. This is the key distinction from an external self-transition, which explicitly exits and re-enters the same state, running exit then entry behavior. Source: UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
5/5 · UML Behavior: Use Case, Activity, Sequence & State
A communication diagram shows objects :UI, :Controller, and :Service connected by links, with messages labeled '1: submit()', '1.1: validate()', and '2: save()'. What is the purpose of this numbering scheme, which has no direct counterpart in a sequence diagram of the same interaction?
ASince a communication diagram has no time axis, the numbers (with nested numbering such as 1.1 for a message sent while handling message 1) give the temporal/causal order of messages along the links.
BThe numbers count how many times each message is retried before an exception is raised (1.1 = first retry of message 1), whereas a sequence diagram shows such retries with loop combined fragments instead.
CThe numbers are class-level version identifiers for the operations that the messages along the links invoke, so this numbering marks 1.1 as the first revision of the operation called by message 1.
DThe numbers denote priority levels the middleware uses for scheduling messages on a communication diagram, so a higher-numbered message can preempt lower-numbered ones.
Answer: A. Communication diagrams depict the same interactions as sequence diagrams but emphasize the structural links between participating objects rather than an explicit timeline. Since there is no vertical time axis, sequence numbers — including dotted/nested numbers such as 1.1 for messages triggered during the handling of message 1 — are attached to messages to convey their order. Source: UML 2.5 specification — UML Behavior: Use Case, Activity, Sequence & State
Try 6 more free OCUP 2 Foundation questions → See the whole OCUP 2 Found. bank

Other OCUP 2 Found. areas

The same kind of free sample for every other section of the OCUP 2 Found. bank:

UML Structure: Class & Object Diagrams121 qUML Foundations & Common Notation63 q

Practise OCUP 2 Found. with instant feedback

6 free questions in study mode · no card · full OCUP 2 Found. bank with area filters and the error log: $15 one-time · no dumps, no ads.

Start OCUP 2 Foundation free →
Read next
OCUP 2 Foundation: Format, Cost and a Study Plan for the OMG UML Exam OCUP 2 Foundation: $350, 90 questions, 120 minutes, 60 correct to pass, Pearson VUE or online. A six-week UML study plan, checked 29 Sep 2026.
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 October 2026); always confirm current details with the vendor before booking.