You're not reading the latest revision of this page, which is
here.
Answer types
Two levels allow setting answer types within a question: at the question level, applying a uniform input type for all answer fields, or within each answer environment. Hence a question can for instance wrap an answer of type Multiple Choice and an answer of typy input fields.
(see Different Answer Type)
Setting the type is done by the \type{...}
-command, and the position of the command determines
how it works.
Example 1 (one type for all answers fields):
1 2 3 4 5 6 7 8 9 10 11 12 | \begin{question}
\type{input.number} % set for all answers
\begin{answer}
...
\end{answer}
\begin{answer}
...
\end{answer}
\end{question}
|
Example 2 (possibly different types for each answer):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | \begin{question}
\type{input.generic} % optional
\begin{answer}
\type{input.number} % this answer has to be a number
...
\end{answer}
\begin{answer}
\type{input.function} % this answer is a function
...
\end{answer}
\begin{answer}
\type{mc.multiple} % this answer block consists of a MC-question.
...
\end{answer}
\end{question}
|
In the second example, the command \type{input.generic}
can be omitted, but each answer
environment needs to have a \type{...}
-command. It is not possible to set a specific type
on question level and just overwrite it for some answers.
Notice that some features like [\permuteAnswers](input.fields.md#permutable-answers) won't be available if a question has different types of answers.
Multiple Choice types
More detailed information on MC questions can be found under the following link:
Multiple choice questions
Here is just an overview of the types:
More detailed information on input field questions can be found under the following link:
Overview input field questions
Here is just an overview of the types: