| 1 |
% !TeX encoding = UTF-8 |
| 2 |
% !TeX spellcheck = en_US |
| 3 |
% !TEX TS-program = lualatex |
| 4 |
\documentclass{article} |
| 5 |
\usepackage[nostamp]{moodle} |
| 6 |
\ifPDFTeX % FOR LATEX and PDFLATEX |
| 7 |
\usepackage[utf8]{inputenc} % necessary |
| 8 |
\usepackage[T1]{fontenc} % necessary |
| 9 |
\else % assuming XELATEX or LUALATEX |
| 10 |
\usepackage{fontspec} |
| 11 |
\fi |
| 12 |
\def\myequation{$(1+\sqrt{5})/2$} |
| 13 |
\htmlregister{\myequation} |
| 14 |
\begin{document} |
| 15 |
|
| 16 |
\section*{Introduction} |
| 17 |
|
| 18 |
This document is intended to check the support of multi answers questions. The |
| 19 |
following options are tested |
| 20 |
\begin{itemize} |
| 21 |
\item Single or multiple correct answer |
| 22 |
\item Shuffling or no shuffling |
| 23 |
\item Numbering |
| 24 |
\end{itemize} |
| 25 |
|
| 26 |
\begin{quiz}[numbering=none]{Example Quiz} |
| 27 |
|
| 28 |
\renewcommand\do[1]{ |
| 29 |
\begin{multi}[numbering=#1]{Multiple Choice} |
| 30 |
Text |
| 31 |
\item* A |
| 32 |
\item B |
| 33 |
\item C |
| 34 |
\end{multi} |
| 35 |
} |
| 36 |
\docsvlist{alph,abc,Alph,ABCD,arabic,123,roman,iii,Roman,IIII} |
| 37 |
|
| 38 |
\begin{multi}[multiple,feedback={abc\\def |
| 39 |
$\sqrt{2}$}]{Multiple Choice} |
| 40 |
Select the following numbers that are prime. |
| 41 |
\item[fraction=70] $\sqrt{25}$ |
| 42 |
\item[fraction=-10] \textbf{68} |
| 43 |
\item[fraction=30,feedback={$\sqrt{25}$}] 7 |
| 44 |
\item[fraction=-70] 8 |
| 45 |
\item \texttt{nothing} |
| 46 |
\end{multi} |
| 47 |
|
| 48 |
\begin{multi}[shuffle,feedback={abc\\def $\sqrt{2}$}]{Multiple |
| 49 |
Choice} |
| 50 |
Select the following numbers that are prime. |
| 51 |
\item* $\sqrt{25}$ |
| 52 |
\item[fraction=-30] 6 |
| 53 |
\item[fraction=-30,feedback={$\sqrt{25}$}] 9 |
| 54 |
\item[fraction=-70] \begin{enumerate} |
| 55 |
\item False |
| 56 |
\item Wrong |
| 57 |
\end{enumerate} |
| 58 |
\end{multi} |
| 59 |
|
| 60 |
\end{quiz} |
| 61 |
\end{document} |