🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Software Design and UML: all 10 questions

Quiz: Software Design and UML · Question 3 of 10

A Room cannot exist without its House. In UML this is:

A Room cannot exist without its House. In UML this is:

  1. A.Aggregation (hollow diamond)
  2. B.Composition (filled diamond)
  3. C.Dependency
  4. D.Inheritance
Answer & explanation

Correct answer: Composition (filled diamond)

The part's lifetime depends on the whole, which is composition.

Can you get the rest right without peeking?

Take the timed Quiz: Software Design and UML quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →