For generating randomized individual quizzes from a question bank.
- install it
npm install
- add your quiz in
src/quizzes/your_quiz_name.yml - run the dev server
npm run dev
- open your quiz and print it!
title: Your Quiz Title
variations: 5 # number of variations to generate
questions:
- question: What does CSS stand for?
answer: Cascading Style Sheets # correct answer
options: # other options
- Computer Stinky Stuff
- Crazy Solid Snake
- Cute Soft Sushi
- question: What does HTML stand for?
answer: HyperText Markup Language
# etc...To put code blocks in a question or answer, you can use YAML literal block style:
(a pipe character | followed by a newline and an indented block of text)
- question: |
Which of the following is valid HTML for the heading tag with the smallest size and lowest rank in the hierarchy?
```html
<h6>This is a heading</h6>
```You can also use double quotes for single-line markdown strings with inline code:
- question: "What does `<div>` mean?"Most other (single-line)markdown syntax should work fine without needing quotes or block style.
- question: Here's a question with some *italic* and **bold** textBecause it's YAML, be careful with : and - in text. If you need to use them, wrap the text in quotes.