\begin{problem}
\randomquestionpool{1}{2}
\randomquestionpool{3}{4}
\begin{question} % Question 1
\type{mc.multiple}
\lang{de}{
\text{Frage 1}
\explanation{Die Erklärung}
}
\lang{en}{
\text{Question 1}
\explanation{Explanation}
}
\begin{choice}
\text{$-5 = -5$}
\solution{true}
\end{choice}
\begin{choice}
\text{$5 = |-5|$}
\solution{true}
\end{choice}
\begin{choice}
\text{$5 = -5$}
\solution{false}
\end{choice}
\end{question}
\begin{question} % Question 2
\begin{variables}
\randint[Z]{a}{-3}{3}
\randint[Z]{b}{1}{5}
\randint[Z]{c}{1}{2}
\randint[Z]{d}{1}{5}
\randint[Z]{f}{-5}{5}
\matrix[calculate]{v1}{a\\b\\c}
\matrix[calculate]{v2}{d\\f\\0}
\matrix[calculate]{cr}{-c*f\\c*d\\(a*f)-(d*b)}
\function[calculate]{dot}{a*d+b*f}
\end{variables}
\type{input.matrix} %optional, this will be the default answer type.
\field{real}
\lang{de}{
\text{Gegeben sind:\\ $\vec{v1} = \var{v1}, \vec{v2} = \var{v2}$}
}
\lang{en}{
\text{Given:\\ $\vec{v1} = \var{v1}, \vec{v2} = \var{v2}$}
}
\begin{answer}
%First answer with default type input.matrix
\text{$\vec{v1} \times \vec{v2} = $}
\solution{cr}
\format{3}{1}
\end{answer}
\begin{answer}
%Second answer with type input.number
\type{input.number} %set a different answer type than the default type
\text{$\vec{v1} \cdot \vec{v2} =$}
\solution{dot}
\end{answer}
\end{question}
\begin{question} % Question 3
\type{input.interval}
\text{Write down the Interval from 1 to 3:}
\field{rational}
\begin{answer}
\text{ A = }
\solution{[1;3]} % or ] for open type, the boundaries should be separated by ";"
\end{answer}
\end{question}
\begin{question} % Question 4
\begin{variables}
\number{a}{1/2}
\number{b}{1/3}
\number{c}{1/5}
\end{variables}
\lang{en}{
\text{\textit{Write the set $A$ of numbers $\var{a}$, $\var{b}$, and
$\var{c}$}:}
}
\lang{de}{
\text{\textit{Schreibe die Menge $A$}:}
}
\type{input.finite-number-set}
\field{rational}
\begin{answer}
\text{$A =$}
\solution{a, b, c}
\end{answer}
\end{question}
\end{problem}