🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Object Relationships: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. A Library has Books; if the library closes, the books can go to another library. This is:
  2. Q2. An Order has OrderItems that make no sense without the order. This is:
  3. Q3. "A Manager is an Employee" is:
  4. Q4. In UML, a filled (black) diamond on a line means:
  5. Q5. A Doctor treats Patients; both exist independently. This is:
  6. Q6. Which question best decides between aggregation and composition?
  7. Q7. A House constructor creates its own Room objects and no other object holds them. Which relationship is this?
  8. Q8. What does this print? (code)
  9. Q9. Why is class Car extends Engine a design mistake?
  10. Q10. In UML, a hollow (white) diamond on the "whole" side of a line means: