Black Friday week: every question bank $9 instead of $15. Ends Monday, Nov 30.
Home › OCUP 2 Advanced › Practice questions › Interactions
OCUP 2 Advanced · OMG · Interactions · Bank updated 2026-11-28

OMG OCUP 2 Advanced (UML 2 Advanced) practice questions: Interactions

5 free questions from 13 on this area · answer and explanation for each · no sign-up

These 5 questions come from the Interactions section of ExamDeck's OMG OCUP 2 Advanced (UML 2 Advanced) bank: 13 of its 172 original questions are on this area, which carries 9% of the real exam. Each is open without sign-up, with the correct answer, the reasoning for every option and its source. In all, 65 OMG OCUP 2 Advanced (UML 2 Advanced) questions are open on the practice pages; a free account adds 6 more in study mode.

Questions on this page last changed 28 Nov 2026. Exam facts checked 8 Nov 2026.

Try 6 free OCUP 2 Advanced questions → All OCUP 2 Advanced sample questions

Free: 6 questions in study mode, no card. All 13 Interactions questions and the full OCUP 2 Advanced bank: $9 (regularly $15) one-time.

How this bank fits the current exam. The bank has questions in all eleven of OMG's areas, but not yet in the exam's proportions: Common Structure (21% of the exam), The MOF & Metamodeling (12%) and Interactions (9%) are covered more thinly than their weight. Our questions come only from the open OMG specifications - UML 2.5.1, MOF 2.5.1, fUML 1.5 and Alf 1.1 - not from the books on the info sheet's study list. The full exam blueprint → Source: OMG UML 2 Advanced exam info sheet
1/5 · Interactions
A break combined fragment has a single operand with no guard expression. A designer asks how the Interaction decides between this operand and the rest of the enclosing fragment. What does the standard prescribe?
A. the fragment is ill-formed and the model is rejected
B. the break operand is taken and the remainder is skipped
C. the remainder is taken and the break operand is dropped
D. the choice between them is made non-deterministically
Answer: D. A guarded break is chosen when its guard is true, and is ignored when false. With no guard, the choice between the break operand and the rest of the enclosing fragment is non-deterministic.
  • A. The standard explicitly defines unguarded break behaviour, so it is allowed (17.6.3.9).
  • B. Confuses break with alt, where a missing guard counts as true; for break the choice is non-deterministic (17.6.3.9, 17.6.3.7).
  • C. Nothing in the standard favours the remainder; both remain possible (17.6.3.9).
  • D. For an unguarded break operand, the choice versus the remainder is non-deterministic (17.6.3.9).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 17.6.3.9, p. 625 · Interactions / 17.6.3.9 Break / break operand without guard
2/5 · Interactions · hard
A combined fragment is labeled loop(3,6), and its operand also carries a separate interaction constraint [linkUp] as a guard. In one execution, linkUp is true for the first pass and false when a second pass would begin. How does the loop behave under UML 2.5.1?
A. it makes three passes, and the guard is consulted from then on
B. it makes one pass, and the minimum in the label forces no other
C. it makes six passes, and the guard matters just for the first one
D. it makes one pass, and that run is then classed as an invalid trace
Answer: B. UML 2.5.1 17.6.3.17 distinguishes the iteration bounds of a loop from a separate interaction constraint. When such a constraint is present, the loop goes on only while it evaluates to true, and this holds even if the minimum count has not yet been reached. Here the second pass does not start.
  • A. This treats the minimum as protected from the guard. UML 2.5.1 17.6.3.17 states that a false specification stops continuation regardless of the minimum.
  • B. A separate interaction constraint must hold for the loop to continue, even when the minimum number of iterations has not been reached.
  • C. The guard is not a one-time entry check. It governs whether the loop continues during execution, and the upper bound is only a ceiling.
  • D. A false loop guard ends the repetition. Invalid traces come from constructs such as neg, assert or a false state invariant, not from this rule.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 17.6.3.17, p. 584-585 · Interactions / 17.6.3.17 Loop / separate interaction constraint versus the minimum iteration count
3/5 · Interactions · hard
A par fragment has two operands. The first is a critical region that covers the lifelines Desk and Police and holds two messages between them. The second holds one message between the lifelines Clerk and Archive, which the region does not cover. What is permitted for the send and receive of that third message?
A. they may occur between the occurrences inside the critical region
B. they must both occur before or after the whole of the critical region
C. they must both follow the critical region, in the order of the operands
D. they yield an invalid trace if they occur while the region is running
Answer: A. UML 2.5.1 17.6.3.14 makes a critical region atomic with respect to other occurrences on the lifelines it covers. The enclosing par still merges its operands freely wherever the region imposes no restriction, so events on Clerk and Archive can appear amid the events of the region.
  • A. The region blocks interleaving by other occurrences on the lifelines it covers. Clerk and Archive are outside it, so par still lets their events fall in between.
  • B. This reads the region as atomic against the entire model. The restriction in UML 2.5.1 is tied to the lifelines that the region covers.
  • C. The par operator imposes no order between its operands, and a critical region does not turn operand position into sequencing.
  • D. A critical region narrows the set of traces allowed by the enclosing fragment on covered lifelines; events on other lifelines are not affected by it.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 17.6.3.14, p. 584 · Interactions / 17.6.3.14 Critical Region / interleaving limited to covered lifelines
4/5 · Interactions
An alt combined fragment has three operands. A message from outside the frame enters through a matched pair of combined fragment gates named in_cancel and is received in the first operand. What else is needed for the gates of this fragment to be well formed?
A. each of the other two operands also uses a gate of that name
B. each of the other two operands uses a gate with a distinct name
C. the other two operands are kept free of gates of any name
D. a formal gate of that name is added on the Interaction frame
Answer: A. UML 2.5.1 17.6.3.7 requires that a gate name used on the inside of one alt operand be used by each operand of the fragment. The constraints in 17.12.9.5 express the same rule: the outer gate needs exactly one matching inner gate per operand.
  • A. When any operand of an alt uses an inner combined fragment gate, each operand of that alt has to use a gate with the same name.
  • B. Distinct names would not match the single outer gate. Within alt, the operands are expected to share the gate name used on the inside.
  • C. This would suit an idea that one operand owns the gate, but alt requires a matching inside gate for each of its operands.
  • D. A formal gate links an Interaction with actual gates on an InteractionUse. It is not what pairs the outer and inner gates of a combined fragment.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 17.6.3.7, p. 583 · Interactions / 17.6.3.7 Alternatives / combined fragment gates across alt operands
5/5 · Interactions · hard
An alt fragment has two operands. In the first, lifeline :Session reaches a destruction occurrence, drawn as a cross. In the second, placed lower on the page, :Session receives a message ping. How does the rule about occurrences below a destruction affect ping?
A. it forbids ping, as the lifeline is closed from the cross downward
B. it permits ping once a creation message precedes it in that operand
C. it does not forbid ping, since its reach is limited to one operand
D. it forbids ping unless the cross is moved below the whole alt frame
Answer: C. The constraint in UML 2.5.1 17.12.6 is scoped to an interaction operand: on a given lifeline, nothing else in that operand may be placed under the destruction. The second operand of the alt is a separate region, so its reception of ping does not break this rule.
  • A. This reads vertical position across the whole diagram. The constraint compares occurrences on the lifeline within one interaction operand.
  • B. The rule sets no re-creation condition for another operand. The destruction in the first operand does not fall within the second operand's check.
  • C. The constraint bars further occurrences below the destruction on that lifeline inside the same operand; ping belongs to a different operand.
  • D. Moving the destruction is not required. It may stay in the first operand, as the restriction does not extend into the second one.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 17.12.6, p. 610-611 · Interactions / 17.12.6 DestructionOccurrenceSpecification / scope of the no-occurrence-below constraint
Try 6 more free OCUP 2 Advanced questions → See the whole OCUP 2 Advanced bank

Other OCUP 2 Advanced areas

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

Alf14 qfUML15 qThe MOF & Metamodeling12 qCommon Structure37 qClassification8 qStateMachines14 qCommon Behavior12 qStructured Classifiers14 qActivities18 qActions15 q

Practise OCUP 2 Advanced with instant feedback

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

Start OCUP 2 Advanced free →
Read next
OCUP 2 Advanced: Who Needs the Top UML Certification and How It Differs from Intermediate OCUP 2 Advanced costs $350, needs Foundation and Intermediate and puts 24% of the exam on MOF, fUML and Alf. Who needs the top UML level and who can stop.
ExamDeck is an independent study tool, not affiliated with, endorsed by, or sponsored by OMG. OCUP 2 Advanced and related marks are trademarks of their respective owners, used for identification only. Exam facts checked against official OMG materials (as of November 2026); always confirm current details with the vendor before booking.