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

OMG OCUP 2 Advanced (UML 2 Advanced) practice questions: Common Structure

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

These 5 questions come from the Common Structure section of ExamDeck's OMG OCUP 2 Advanced (UML 2 Advanced) bank: 37 of its 172 original questions are on this area, which carries 21% 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 37 Common Structure 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 · Common Structure
On a diagram, a bound Class OrderList must be shown as bound to the template Class List, using the explicit relationship notation rather than a binding expression in the class name. How is the TemplateBinding drawn?
A. a solid line with an open arrowhead at List, keyword «bind»
B. a dashed arrow with its tail on List and head on OrderList, keyword «bind»
C. a dashed line with a triangular arrowhead at List, keyword «bind»
D. a dashed arrow with its tail on OrderList and head on List, keyword «bind»
Answer: D. A TemplateBinding is drawn as a dashed arrow whose tail is on the bound element and whose arrowhead is on the template, labelled with the keyword bind. The substitutions may be listed as comma-separated pairs alongside. A triangular head on a dashed line denotes Realization instead.
  • A. Template bindings are dashed, not solid. A solid line with this arrowhead suggests another kind of relationship.
  • B. The direction is reversed. The tail sits on the bound element and the head on the template (7.3.4).
  • C. A triangular head on a dashed line is the Realization notation (7.7.4), not the binding notation.
  • D. 7.3.4 shows a TemplateBinding as a dashed arrow, tail on the bound element, head on the template, with the keyword bind.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 7.3.4, p. 68-69 · Common Structure / 7.3.4 Notation / TemplateBinding
2/5 · Common Structure
A template Class Mapper has two formal TemplateParameters, Key and Value, with no defaults. The modeler creates Class StringMapper with one TemplateBinding to Mapper that substitutes String for Key. The tool in use permits partial binding. What is the status of StringMapper?
A. an ordinary Class that can type an attribute, with Value undefined
B. still a template, parameterized by the unbound Value
C. a non-template Class that inherits Value through a Generalization
D. a template parameterized by both Key and Value
Answer: B. When a binding covers only some formal TemplateParameters, the unbound ones act as formal parameters of the bound element, which therefore is still a template. Only the substituted parameter disappears.
  • A. An element with an unbound parameter is not ordinary; it is still a template (7.3.3.1).
  • B. A partially bound element remains a template, parameterized by the parameters left unbound (7.3.3.1, 7.3.3.3).
  • C. Binding is not generalization; the unbound parameter stays formal for the bound element (7.3.3.3).
  • D. The substituted Key is removed from the formal parameters of the bound element; only Value remains (7.3.3.3, 7.3.3.4).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 7.3.3.1, p. 66 · Common Structure / 7.3.3.1 Templates / partially bound element
3/5 · Common Structure · hard
Class Account is owned by Package Billing, which is owned by a Package whose name is absent. Billing and Account both have names. What is the qualifiedName of Account?
A. none, since the unnamed Package breaks the chain
B. Billing::Account, skipping the unnamed Package
C. ::Billing::Account, with an empty root segment
D. Account, the bare name of the element
Answer: A. A qualifiedName is built from the names of all containing Namespaces and the element itself. If the element has no name or one containing Namespace has none, the qualifiedName is absent, which also differs from an empty name.
  • A. If any containing Namespace has no name, there is no qualifiedName (7.8.9.8 has_no_qualified_name).
  • B. The chain is built only when all containing Namespaces have names (7.8.9.7, 7.8.9.8).
  • C. The spec defines no such form for an unnamed root; the qualifiedName is absent instead (7.8.9.8).
  • D. The bare name is the name, not the qualifiedName; the latter is absent here (7.8.9.8).
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 7.8.9, p. 89-92 · Common Structure / 7.8.9 NamedElement / qualifiedName with unnamed Namespace
4/5 · Common Structure
A model must show a database system running on an operating system that itself runs on a physical server. Which nesting follows the pattern the specification describes?
A. a Device that owns a database ExecutionEnvironment, which owns an operating system ExecutionEnvironment
B. an operating system ExecutionEnvironment that owns a Device for the server
C. a Device that owns an operating system ExecutionEnvironment, which owns a database ExecutionEnvironment
D. an operating system Artifact that owns the database ExecutionEnvironment on a Device
Answer: C. ExecutionEnvironments are typically assigned to a higher-level Device and can be nested, for example a database environment inside an operating system environment.
  • A. This reverses the nesting; the specification nests a database environment in an operating system environment.
  • B. Devices represent the physical machine and would hold the environments, not the other way round.
  • C. UML 19.4.3 assigns environments to a higher-level Device and nests a database one in an operating system one.
  • D. Artifacts are deployed items and cannot own nodes.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 19.4.3, p. 700 · Deployments / 19.4.3 Semantics / nesting of ExecutionEnvironments
5/5 · Common Structure · hard
Profile Enterprise has a metamodelReference to the UML package and contains a nested profile Messaging. Messaging defines stereotypes that extend Class but declares no metaclass or metamodel reference. A team intends to apply Messaging on its own. What must the profile author do?
A. add to Messaging itself a reference that makes Class available there
B. rely on the metamodel reference in Enterprise to cover Class in Messaging
C. apply Messaging in strict mode and let its stereotypes make Class available
D. make Messaging a plain package covered by the UML reference in Enterprise
Answer: A. A profile packaged inside another profile can be applied individually. If it contains stereotypes, it must specify the metaclass or metamodel references it requires. The reference held by Enterprise does not help, because UML 2.5.1 states that such references are not inherited from a containing profile. Choosing strict application changes how filtering is enforced and does not remove this obligation.
  • A. A nested profile that contains stereotypes has to specify the metaclass or metamodel references it requires, and those of the containing profile are not inherited (UML 2.5.1, 12.3.3.3).
  • B. Containment does not pass metaclass or metamodel references from an outer profile down to a nested one (UML 2.5.1, 12.3.3.3).
  • C. Strict filtering does treat a metaclass extended by an applied stereotype as available (12.3.3.1.1), but this does not release a nested profile from specifying its required references (12.3.3.3).
  • D. Stereotypes in a plain package do draw on the closest parent profile (12.3.3.4), but a ProfileApplication applies a Profile (12.4.8), so this gives up applying Messaging as a profile of its own.
Source: OMG Unified Modeling Language 2.5.1 (formal/17-12-05), 12.3.3.3, p. 259 · Profiles / 12.3.3.3 ProfileApplication / references of a nested profile
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 qClassification8 qStateMachines14 qCommon Behavior12 qStructured Classifiers14 qActivities18 qInteractions13 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.