CompSci.rocks

Question Types

The front matter every Markdown Quizzes question needs, and the three question types available.

All questions are simple markdown files with a bit of front matter to tell the script what it needs to know to display and grade the question. At a minimum, the front matter needs to include the question type. The question might also require the correct answer in the front matter.

The front matter would look something like this.

---
title: An optional title for the question
type: (Question type: MC, TF, FIB)
answer: (The correct answer)
---

So, let's say we want a multiple choice question. It would look like this.

---
title: My first multiple choice question
type: MC
answer: A
---

All questions share the following properties in front matter. Some question types may have additional properties.

Property Notes
title The name of the question. This is optional and currently not used, but may be in the future.
type The type of question — either MC (multiple choice), TF (true / false), or FIB (fill in the blank). This is the only required field.

In this section