summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/webquiz/examples/choice-single.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/webquiz/examples/choice-single.tex')
-rw-r--r--Master/texmf-dist/doc/latex/webquiz/examples/choice-single.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/webquiz/examples/choice-single.tex b/Master/texmf-dist/doc/latex/webquiz/examples/choice-single.tex
new file mode 100644
index 00000000000..76537144f00
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/webquiz/examples/choice-single.tex
@@ -0,0 +1,13 @@
+\documentclass{webquiz}
+\title{A multiple choice question with a unique answer}
+\begin{document}
+ \begin{question} % a quiz question
+ What is the cube root of $64$?
+ \begin{choice}[columns=4]% unique answer rendered in four columns
+ \incorrect 1 \feedback No, $1^3=1$
+ \incorrect 2 \feedback No, $2^3=8$
+ \incorrect 3 \feedback No, $3^3=27$
+ \correct 4 \feedback Yes, $4^3=64$
+ \end{choice}
+ \end{question}
+\end{document}