Skip to main content

UML Quiz (Syntax)

This page demonstrates the quiz block parser syntax. It includes:

  1. Single-choice options (- ( ) / - (x))
  2. Multi-correct checkbox options (- [ ] / - [x])
  3. Open short-answer with accepted variants and max length (= ... ~10)

Generated quiz (experimental)

Use the x button to temporarily strike out an option.

1. Which diagram type is used for the three-phase overview in the Red Riding Hood example?

2. Which statements about sequence diagrams are correct?

3. Name one participant from the Red Riding Hood sequence diagrams.

Auto-graded short answer.

Parser warnings:
  • Question 1: no '(x)' found for single-choice question; first option set as correct.

Quiz source text (experimental)


? Which diagram type is used for the three-phase overview in the Red Riding Hood example?
! Look for the diagram with swimlanes and process flow across phases.
- ( ) Activity diagram
- ( ) Class diagram
- ( ) Sequence diagram
- ( ) Use case diagram

? Which statements about sequence diagrams are correct?
! Think in terms of time-ordered messages between participants.
- [x] They show interactions over time.
- [ ] They replace all class diagrams.
- [x] They can show self-messages.
- [ ] They only model databases.

? Name one participant from the Red Riding Hood sequence diagrams.
! Use one actor/lifeline name from the story diagrams.
= wolf / little red / grandmother / huntsman ~20

Parsed quiz model (experimental)


{
"version": "0.1.0-draft",
"questions": [
{
"id": "q1",
"prompt": "Which diagram type is used for the three-phase overview in the Red Riding Hood example?",
"questionType": "single",
"options": [
{
"text": "Activity diagram",
"isCorrect": true,
"forcedOrder": null
},
{
"text": "Class diagram",
"isCorrect": false,
"forcedOrder": null
},
{
"text": "Sequence diagram",
"isCorrect": false,
"forcedOrder": null
},
{
"text": "Use case diagram",
"isCorrect": false,
"forcedOrder": null
}
],
"acceptedAnswers": [],
"maxLength": null,
"hint": "Look for the diagram with swimlanes and process flow across phases."
},
{
"id": "q2",
"prompt": "Which statements about sequence diagrams are correct?",
"questionType": "multiple",
"options": [
{
"text": "They show interactions over time.",
"isCorrect": true,
"forcedOrder": null
},
{
"text": "They replace all class diagrams.",
"isCorrect": false,
"forcedOrder": null
},
{
"text": "They can show self-messages.",
"isCorrect": true,
"forcedOrder": null
},
{
"text": "They only model databases.",
"isCorrect": false,
"forcedOrder": null
}
],
"acceptedAnswers": [],
"maxLength": null,
"hint": "Think in terms of time-ordered messages between participants."
},
{
"id": "q3",
"prompt": "Name one participant from the Red Riding Hood sequence diagrams.",
"questionType": "open_short",
"options": [],
"acceptedAnswers": [
"wolf",
"little red",
"grandmother",
"huntsman"
],
"maxLength": 20,
"hint": "Use one actor/lifeline name from the story diagrams."
}
],
"warnings": [
"Question 1: no '(x)' found for single-choice question; first option set as correct."
]
}