Extension quiz
A multiple choice questions that can be solved directly in the page.
Must have exactly one correct answer.
Python type | Quiz |
type | quiz |
Language | YAML |
Required fields | correct, false-1 |
Optional fields | question, title, false-2, false-3, result-correct, result-false, result-false-1, result-false-2, result-false-3 |
Post-Yaml Section | optional |
Example 1
Example Quiz 1
Which of the alternatives is the best one?
- This is the right answer.
- A fake answer.
- Another fake answer.
- Yet another fake anser.
Source Code
--- type: quiz title: Example Quiz 1 question: Which of the alternatives is the best one? correct: This is the right answer. false-1: A fake answer. false-2: Another fake answer. false-3: Yet another fake anser. result-correct: Correct. You selected the result-false-1: False. You selected a fake answer. result-false-2: False. You selected another fake answer. result-false-2: False. You selected yet another fake answer. ---
---
type: quiz
title: Example Quiz 1
question: Which of the alternatives is the best one?
correct: This is the right answer.
false-1: A fake answer.
false-2: Another fake answer.
false-3: Yet another fake anser.
result-correct: Correct. You selected the
result-false-1: False. You selected a fake answer.
result-false-2: False. You selected another fake answer.
result-false-2: False. You selected yet another fake answer.
---
Example 2
Example Quiz 2
Which of the alternatives is the best one?
- A list with one item
- Another item
- This is the right answer.
- A fake answer.
- Another fake answer.
- Yet another fake anser.
Source Code
--- type: quiz title: Example Quiz 2 correct: This is the right answer. false-1: A fake answer. false-2: Another fake answer. false-3: Yet another fake anser. result-correct: Correct. You selected the result-false-1: False. You selected a fake answer. result-false-2: False. You selected another fake answer. result-false-2: False. You selected yet another fake answer. --- Which of the alternatives is the best one? * A list with one item * Another item
---
type: quiz
title: Example Quiz 2
correct: This is the right answer.
false-1: A fake answer.
false-2: Another fake answer.
false-3: Yet another fake anser.
result-correct: Correct. You selected the
result-false-1: False. You selected a fake answer.
result-false-2: False. You selected another fake answer.
result-false-2: False. You selected yet another fake answer.
---
Which of the alternatives is the best one?
* A list with one item
* Another item