File:  [LON-CAPA] / loncom / html / adm / help / tex / numerical_wrong_answers.tex
Revision 1.3: download - view: text, annotated - select for diffs
Sat Aug 20 16:27:15 2016 UTC (7 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, HEAD
- Typos.

\label{numerical_wrong_answers}
When switched into exam (``bubble sheet'') mode, 
LON-CAPA usually creates wrong answers automatically.
To specify wrong answers yourself, you need to provide an array of incorrect
values to the <numericalresponse> through the `incorrect' attribute.
You need to provide at least as many incorrects as 1 less than the
number of bubbles on the exam. You can provide more if you want to.

In Edit mode there is an `Incorrect Answers:' field you can
fill in.

Minimal example problem:
\begin{verbatim}
<problem>
  <script type="loncapa/perl">
    $answer=1;
    @incorrects=(2,3,4,5,6,7,8);
  </script>
  <startouttext />
    Correct answer is 1. <br />
  <endouttext />
  <numericalresponse answer="$answer" incorrect="@incorrects">
    <textline />
  </numericalresponse>
</problem>
\end{verbatim}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>