texmf-dist/doc/latex/webquiz/examples/choice-single.tex
raw| 1 | \documentclass{webquiz} |
| 2 | \title{A multiple choice question with a unique answer} |
| 3 | \begin{document} |
| 4 | \begin{question} % a quiz question |
| 5 | What is the cube root of $64$? |
| 6 | \begin{choice}[columns=4]% unique answer rendered in four columns |
| 7 | \incorrect 1 \feedback No, $1^3=1$ |
| 8 | \incorrect 2 \feedback No, $2^3=8$ |
| 9 | \incorrect 3 \feedback No, $3^3=27$ |
| 10 | \correct 4 \feedback Yes, $4^3=64$ |
| 11 | \end{choice} |
| 12 | \end{question} |
| 13 | \end{document} |