ITPEC FE Subject A April 2025 Question 35

Source exam: ITPEC FE Subject A April 2025Topic: Software Development

ITPEC FE Subject A April 2025 — Question 35 of 60

UML Generalization — identify the class diagram showing an inheritance (is-a) relationship.

Generalization uses a solid line with a hollow triangle (△) pointing to the parent class.

  • (a) — association with 1:1 multiplicity (Automobile ↔ Inspection certificate)
  • (b) — dependency (dashed arrow from Driver to Automobile)
  • (c)generalization (Sports car inherits from Automobile) ✔
  • (d) — composition (filled diamond ◆, Tire and Engine are parts of Automobile)

UML relationship cheat sheet:
- hollow triangle → generalization (is-a, inheritance)

- hollow diamond → aggregation (has-a, parts can exist independently)

- filled diamond → composition (has-a, parts cannot exist without the whole)

- - - → dashed arrow → dependency

- —— solid line → association

Key rule: Generalization = solid line + hollow triangle pointing at the superclass.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.