File:  [LON-CAPA] / loncom / html / adm / help / tex / numerical_wrong_answers.tex
Revision 1.1: download - view: text, annotated - select for diffs
Wed Jun 9 13:55:21 2004 UTC (20 years, 3 months ago) by www
Branches: MAIN
CVS tags: HEAD
Will do typesetting later.

\label{numerical_wrong_answers}
The quick explanation is you need to provide an array of incorrect
values to the <numericalresponse> throught the 'incorrect' attribute.
You need to provide at least as many incorrects as 1 less then the
number of bubbles on the exam. You can provide more if you want to.

(in Edit mode there should be an 'Incorrect Answers:' field you can
fill in)

Minimal example problem:

<problem>
  <script type="loncapa/perl">
    $answer=1;
    @incorrects=(2,3,4,5,6,7,8);
  </script>
  <startoutext />
    Correct answer is 1. <br />
  <endouttext />
  <numericalresponse answer="$answer" incorrect="@incorrects">
    <textline />
  </numericalresponse>
</problem>

Let me know if any this fails to work for you.

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