Quiz format
A quiz is a JSON file in config/quizz. Guide: Create a quiz.
Fields in bold are required.
| Field | Type | Notes |
|---|---|---|
subject |
string | The title. |
questions |
Question[] | At least one. |
gameMode |
quiz | survey |
Default quiz. See Survey mode. |
id |
string | Managed by Razzia, don’t edit. |
Question
Section titled “Question”| Field | Type | Notes |
|---|---|---|
question |
string | |
answers |
string[] | 2 to 4. Empty for estimation. |
cooldown |
integer | Seconds before answers open, 3 to 15. |
time |
integer | Seconds to answer, at least 5. -1 for no limit. |
solutions |
number[] | Indices of the right answers, from 0. For estimation, the expected value. Required in quiz mode. |
type |
single | multi | estimation |
Default single. See Question types. |
maxPoints |
integer | Default 1000. |
penalty |
integer | Points lost on a wrong answer. Default none. |
category |
string | See Rounds. |
note |
string | Shown when the answer is revealed. |
media |
{ type, url } |
See Media. |
options |
object | See Options. Required for estimation. |
| Field | Type | Notes |
|---|---|---|
type |
image | audio | video |
|
url |
string | https://… URL, or /media/… for an uploaded file. |
Options
Section titled “Options”| Field | Type | For | Notes |
|---|---|---|---|
scoringMode |
strict | balanced | lenient |
multi |
Default balanced. See Multiple answers. |
inputMode |
slider | input |
estimation |
|
min, max |
number | estimation |
max > min. The solution must be in between. |
step |
number | estimation |
Slider precision, > 0. |
margin |
number | estimation |
Distance still counted as right, ≥ 0. |
Example
Section titled “Example”{ "subject": "Example quiz", "questions": [ { "question": "What is the capital of France?", "answers": ["Berlin", "Paris", "Madrid", "Rome"], "solutions": [1], "cooldown": 5, "time": 15 }, { "type": "estimation", "question": "How many days does a fly live?", "answers": [], "solutions": [28], "options": { "inputMode": "slider", "min": 0, "max": 60, "step": 1, "margin": 5 }, "cooldown": 5, "time": 30 } ]}Older quiz files still load: missing gameMode and type get their default, and a single-number solutions like 1 is read as [1].