IREB_CPRE_FL practice question 10 of 10
You model invoices and invoice items with a UML class diagram. Explanation: The total amount of an invoice is calculated by summing up all individual invoice items. This means that an invoice showing 5 article prices contains 5 invoice items. What model element most accurately describes the relationship between invoice and invoice items? (1 Point)
Full set: 45 questionsIn UML class diagrams applied in Requirements Engineering (IREB), relationships between classes reflect structural and lifecycle dependencies. A composition is a strong form of aggregation where part objects are existentially dependent on the aggregate (whole) object. In this scenario, an invoice consists of individual invoice items, and the total amount is calculated directly from these items. If an invoice is deleted or does not exist, the individual invoice items lose their structural existence context and cannot exist independently. Therefore, composition (represented by a filled diamond symbol at the whole end) is the most accurate model element to describe the lifecycle-dependent whole-part relationship between an invoice and its constituent invoice items.
B. Aggregation: Aggregation represents a weak whole-part relationship where part objects can exist independently without existential dependency on the whole.
C. Generalisation: Generalisation denotes an "is-a" taxonomy or inheritance relationship between superclasses and subclasses, not a whole-part structural relationship.
D. Association: Association is a generic structural connection; composition is far more precise because it specifically denotes mandatory lifecycle and existential dependency.
IREB CPRE Foundation Level Syllabus, Version 3.1.0, Section 4.4 "Modelling Requirements with Structural Diagrams".
IREB Handbook Requirements Engineering Foundation Level, Version 1.1, Chapter 4 "Requirements Modelling".
OMG Unified Modeling Language (OMG UML) Specification, Version 2.5.1, Section 11 "Classes".
Keep practicing
Take the free IREB_CPRE_FL practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other IREB_CPRE_FL practice questions
- Question 2As part of the "UniKasso" project, the "CRETIL" company is standardising the payment meth…
- Question 3Your company works intensively with models in requirements engineering and uses UML for t…
- Question 4In delimiting system and system context, a differentiation is made between the system bou…
- Question 5You are project manager for a system that your company is creating for the military in th…
- Question 6For an interview, you have prepared a use case diagram for the system to be specified. Yo…
- Question 7Which of the following statements best characterizes the relationship between a requireme…
