Quizzes#
This page demonstrates interactive quizzes with the quiz directive
and the quiz-ph, quiz-input, quiz-select and
quiz-hint roles.
Static#
Static quizzes can be laid out in various formats, for example as tables.
\(a\) |
\(b\) |
\(a + b\) |
|---|---|---|
1 |
2 |
|
7 |
11 |
|
15 |
27 |
They can also be laid out as lists, usually with right-aligned fields.
Calculate \(6 \cdot 7 \).
Convert \(00101010_2\) to decimal and hexadecimal.
What is the answer to the ultimate question of life, the universe, and everything? Explain your reasoning in full detail, provide references, and indicate plausible alternatives.
Are you sure about your previous answer?
This input field uses the whole line. Guess what the answer is.
What is the capital of Switzerland?
Which of the following are second-order polynoms?
\(\sin(x) = \frac{1}{2}\)
\(\cos(\frac{\pi}{4}) = x\)
\(\tan(x) = \sqrt{3}\)
Which program prints the numbers from 1 to 5?
Table#
Table-based quizzes can be generated dynamically, for drill exercises.
\(a\) |
\(b\) |
\(a + b\) |
\(a \cdot b\) |
\(a | b\) |
|---|---|---|---|---|
Table-based quizzes that use quiz-check must be created with
{list-table}, as Markdown tables cannot contain directives.
\(n\) |
Multiple of |
In interval |
|---|---|---|