This section explores the different types of exercises Ximera supports.

### Basic Function Answer Type

The basic way of including a answerable item in Xiemra is to use the \answer
command. The \answer **must** be inside of an environment.

\begin{question}

$3\times 2 = \answer{6}$

\end{question}

Will produce the question:

In addition to numerical answers, we also support elementary functions:

\begin{question}

$ \frac{\partial}{\partial x} x^2\sin(y) = \answer{2x\sin(y)}$

\end{question}

Produces:

While **any** environment can contain the command \answer, there are four special
environments: question, exercise, problem, exploration. Each of these
environments is the same, except for the name. These environment interact with the
optional arguments in the documentclass in useful ways. We’ll discuss this
later.

### Choice Answer Type

#### Multiple Choice

\begin{question}

Which of the following functions has a graph which is a parabola?

\begin{multipleChoice}

\choice[correct]{$y=x^2+3x-3$}

\choice{$y = \frac{1}{x+2}$}

\choice{$y=3x+1$}

\end{multipleChoice}

\end{question}

Produces:

#### Select All

\begin{question}

Which of the following numbers are even?

\begin{selectAll}

\choice[correct]{$2$}

\choice{$1$}

\choice[correct]{$-4$}

\choice[correct]{$0$}

\end{selectAll}

\end{question}

Produces:

### free-response

The free response environment gives students access to a LATEX editor.

\begin{question}

Question goes here!

\begin{freeResponse}

This is the model solution %You don’t actually need anything in between the begin and end line.

\end{freeResponse}

\end{question}