Multiple Selection
Non Permuting Multiple Selection
Description
The student will be presented with a
question and a list of choices that includes possibly more
than one correct answer.
Notes
- Use the
\choice
macro to declare each choice. Use
the starred form, \choice*
, to declare the correct
choices.
- You can have as many or as few choices as
desired, and more than one may be a correct choice.
- The student must select
all of the correct choices for the
question to be graded correct.
- The order of the choices will be scrambled
for the student. Use Non Permuting Multiple
Selection if you want the choices to appear in the
specific order listed.
Examples
\begin{question}{Multiple Selection}
\qutext{Choose all cities that are located in California.}
% List the choices, and mark all the correct choices with an asterisk:
\choice*{San Francisco}
\choice*{Los Angeles}
\choice{Chicago}
\choice{New York}
\choice*{Sacramento}
\end{question}
\begin{question}{Multiple Selection}
\qutext{Select the equations of all lines that are vertical asymptotes
of the graph of $y=\sec x$. Or, if the graph has no vertical asymptotes,
select the ``No vertical asymptotes'' choice.}
\choice*{$x=-7\pi/2$}
\choice{$x=-\pi$}
\choice*{$x=-\pi/2$}
\choice{$x=0$}
\choice{$x=\pi/4$}
\choice{$x=2\pi/3$}
\choice*{$x=5\pi/2$}
\choice{No vertical asymptotes}
\end{question}
\begin{question}{Multiple Selection}
% This question uses algorithmic variables.
\qutext{Select the equations of all lines that are vertical asymptotes
of the graph of the function
$f(x)=\displaystyle\frac{\var{a}x^{\var{b}}}{x^2-\var{$c*$c}}$.
Or, if the graph has no vertical asymptotes, select the ``No vertical
asymptotes'' choice.}
\choice*{$x=-\var{c}$}
\choice*{$x=\var{c}$}
\choice{$x=0$}
\choice{$x=\var{d}$}
\choice{$x=-\var{d}$}
\choice{No vertical asymptotes}
\code{$a = range(2,10);
$b = range(2,10);
$c = range(1,4);
$d = int($c+range(1,2));}
% The above code chooses random integer coefficients a and b
% between 2 and 10 (inclusive), and c between 1 and 4 (likewise).
% The variable d creates extra choices that don't duplicate
% the others.
\end{question}
See Also