| 1 |
\documentclass{webquiz} |
| 2 |
\title{An easy example} |
| 3 |
\begin{document} |
| 4 |
\begin{question} % a quiz question |
| 5 |
Alice is twice as old as Betty. |
| 6 |
Betty is one year older than Claire. |
| 7 |
If Alice is $4$ how old is Claire? |
| 8 |
\begin{choice}[columns=2] % multiple choice question |
| 9 |
\correct $1$ % first choice - correct answer |
| 10 |
\feedback If Claire is $1$ then Betty is $2$ and Alice is~$4$! |
| 11 |
|
| 12 |
\incorrect $2$ % second choice - incorrect |
| 13 |
\feedback If Claire is $2$ then Betty is $3$ and Alice is~$6$. |
| 14 |
|
| 15 |
\incorrect $3$ % third choice - incorrect |
| 16 |
\feedback If Claire is $3$ then Betty is $4$ and Alice is~$8$. |
| 17 |
|
| 18 |
\incorrect $4$ % fourth choice - incorrect |
| 19 |
\feedback If Claire is $4$ then Betty is $5$ and Alice is~$10$. |
| 20 |
\end{choice} |
| 21 |
\end{question} |
| 22 |
\end{document} |