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

Quiz: UML Class Diagrams: questions with answers

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

Take the timed quiz + get a certificate →
  1. Q1. In a UML class box, what does - balance : double mean?
  2. Q2. Which UML symbol means protected?
  3. Q3. How is a static attribute shown in a UML class diagram?
  4. Q4. A line with a hollow triangle pointing at Vehicle from Car means:
  5. Q5. A dashed line with a hollow triangle from UpiPayment to «interface» Payment becomes which Java code?
  6. Q6. House ◆—— Room (filled diamond at House). Which Java design matches?
  7. Q7. On the line Teacher 1 ——— 0.. Course, how many teachers does one course have?
  8. Q8. Multiplicity 0.. on a field is usually written in Java as:
  9. Q9. What does this print? (code)
  10. Q10. A method print(Report r) uses a Report only as a parameter. Which relationship is this?