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