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