Skip to main content

Quiz 2.1: Diagrams

Question 1

Which two diagram syntaxes are used in the demo reader?

Show correct answer

PlantUML and Mermaid

Question 2

What should a diagram fallback preserve?

Show correct answer

The original diagram source code

Question 3

What does this class diagram say?

Question 3

PlantUML source for "Question 3"
@startuml
class Student
class Course
Student --> Course : enrolls in
@enduml

Class diagram with 2 class(es) and 1 relation(s).

Classes:

  • Class Student without methods and attributes
  • Class Course without methods and attributes

Relations:

  • Student has an association-relationship named 'enrolls in' with Course
Show correct answer

A student enrolls in a course

Question 4

Which diagram shows that a Course is a kind of Subject?

Show correct answer

This diagram:

Question 4, answer A

PlantUML source for "Question 4, answer A"
@startuml
class Course
class Subject
Course --|> Subject
@enduml

Class diagram with 2 class(es) and 1 relation(s).

Classes:

  • Class Course without methods and attributes
  • Class Subject without methods and attributes

Relations:

  • Course extends Subject