All questions can be given a name, a comment, and a set of properties.
The \name field is used as an identifier for a question. It is recommended that you assign a name to every question. This will help you to identify questions when creating assignments from your question bank.
If present, the \comment field is shown to the student instead of the \answer field if the question is answered incorrectly.
The \property field takes two arguments. The first is the name of the property. The second is its value. You can choose any useful name. There can be more than one \property statement. When converted to the EDU format files, properties are converted to information fields.
\begin{question}{formula}
\name{p65, qu14}
\qutext{Differentiate $x e^x$.}
\answer{x e^x + e^x}
\comment{Use the product rule to differentiate this formula. The answer
is $x e^x + e^x=(x+1)e^x$.}
\property{author}{I. M. Prof}
\property{difficulty}{medium}
% The 'author' and 'difficulty' property names are
% examples. You can create property names as required.
\end{question}
Other commands include:
\code - To specify algorithmic
statements, use the \code command. For
example:
\code{
$m=rint(7);
$n=int(2*$m+3);
}
\var
- To use a system algorithmic
variable in LaTeX, do not
specify the $ and enclose the
name in a \var{} command. For example, to
display the variable $n in the
question statement, use:
\qutext{What is the exact value of $\sin(\frac{\var{n}\pi}{4})$?}