You're not reading the latest revision of this page, which is
here.
Answer types
The type of questions and answers
There are two levels at which one can set types of answers within a question. Either on question
level in which case the same input-type is assumed for each answer field, or within each answer
environment separately. In this case one can have different types of answers within one question.
(see Different Answer Type)
Multiple choice tasks can also be wrapped by an answer environment in order to have MC-tasks and
input fields in one question (see below).
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.
What type is applicable
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: