Home › OCUP 2 Found. › Practice questions › UML Structure: Class & Object Diagrams
OCUP 2 Found. · OMG · UML Structure: Class & Object Diagrams · Bank updated 2026-10-27

OCUP 2 Found. practice questions: UML Structure: Class & Object Diagrams

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

These 5 questions come from the UML Structure: Class & Object Diagrams section of our OCUP 2 Found. bank (121 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 121 UML Structure: Class & Object Diagrams questions and the full OCUP 2 Found. bank: $15 one-time.

1/5 · UML Structure: Class & Object Diagrams · easy
An attribute in a class's attribute compartment is written as '/ age : Integer'. What does the leading forward slash indicate according to UML 2.5 notation?
AThe attribute is static: a single age value is stored once for the class and shared by every instance of the owning class.
BThe attribute is derived: its value can be computed from other attributes or relationships rather than stored independently.
CThe attribute is optional and may be omitted from an object without violating the class definition, leaving its age value empty.
DThe attribute is read-only: its value is set when the object is created and cannot be changed afterwards.
Answer: B. UML 2.5 uses a leading '/' before the name of an attribute (or association end) to mark it as derived: a feature whose value is calculated from other model elements rather than stored as independent state. This is distinct from visibility, static scope, or read-only markings, which use different notation. Source: UML 2.5 specification — UML Structure: Class & Object Diagrams
2/5 · UML Structure: Class & Object Diagrams
On a class diagram, an association end near class LineItem shows only the symbol '*' (asterisk), with no explicit lower bound written. According to UML 2.5 notation conventions, what multiplicity range does this shorthand represent?
A0..* - zero or more instances: the lower bound is zero and there is no upper bound.
B1..* - at least one instance is required: the lower bound is one and there is no upper bound.
C0..1 - an optional single instance: the lower bound is zero and the upper bound is one.
DExactly one instance, since '*' is treated as a shorthand default meaning 1.
Answer: A. UML 2.5 permits '*' as shorthand for the multiplicity range '0..*', meaning the association end may have zero, one, or many linked instances with no explicit upper limit. This is distinct from '1..*', which additionally enforces a minimum of one linked instance. Source: UML 2.5 specification — UML Structure: Class & Object Diagrams
3/5 · UML Structure: Class & Object Diagrams
In UML 2.5, a Package is a kind of Namespace. Which statement best describes the consequence of this for elements owned directly by the same package?
AName uniqueness is enforced across different packages by the model as a whole, while elements owned directly by a single package fall outside any namespace rule
BClasses owned directly by the package are subject to the namespace's unique-name rule, while other owned elements such as interfaces and data types are exempt from it
CElements owned directly by the package may freely duplicate names, since a package is a namespace for organizing elements rather than for identifying them
DNo two elements owned directly by the package may have the same name, since a namespace is a scope in which owned members are uniquely identifiable by name
Answer: D. A Namespace in UML 2.5 is defined as an element that can own named members and ensures that those members can be uniquely identified by name within its scope; since Package is a Namespace, this rule applies directly to a package's owned contents. Source: UML 2.5 specification — UML Structure: Class & Object Diagrams
4/5 · UML Structure: Class & Object Diagrams · easy
On a UML association, a small solid triangular arrowhead is placed directly next to the association's name label, separate from either end of the line. What does this arrowhead indicate?
AThe direction in which the association name should be read; it has no bearing on navigability
BThat the end nearer the arrowhead is navigable while the other end is not
CThat the association is derived from another association in the model
DThat the association represents composite aggregation in the direction of the arrow
Answer: A. UML 2.5 permits an optional small arrowhead beside an association's name to disambiguate how the name should be read (e.g., subject-verb-object order). This is purely a readability aid and is independent of navigability, which is shown separately at the association ends. Source: UML 2.5 specification — UML Structure: Class & Object Diagrams
5/5 · UML Structure: Class & Object Diagrams
Which statement correctly describes the semantics of a Generalization relationship between a specific classifier and a general classifier in UML 2.5?
AThe specific classifier must implement, without inheriting any implementation, every operation declared by the general classifier, and is not substitutable for it.
BThe specific classifier inherits the features of the general classifier and must be usable wherever an instance of the general classifier is expected.
CThe specific classifier is only weakly reliant on the general classifier for correct implementation and can be freely substituted with any other classifier.
DThe specific classifier maintains a structural, attribute-based reference to instances of the general classifier, without inheriting its features.
Answer: B. Generalization establishes an is-a, inheritance-based relationship in which the specific classifier inherits the general classifier's features and remains substitutable for it. This is distinct from dependency's weak reliance, interface realization's non-inheriting contract fulfillment, and association's structural instance linking. Source: UML 2.5 specification — UML Structure: Class & Object Diagrams
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 Behavior: Use Case, Activity, Sequence & State123 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.