Annotation of loncom/html/adm/help/tex/numerical_wrong_answers.tex, revision 1.2

1.1       www         1: \label{numerical_wrong_answers}
1.2     ! www         2: When switched into exam (``bubble sheet'') mode, 
        !             3: LON-CAPA usually create wrong answers automatically.
        !             4: To specify wrong answers yourself, you need to provide an array of incorrect
1.1       www         5: values to the <numericalresponse> throught the 'incorrect' attribute.
1.2     ! www         6: You need to provide at least as many incorrects as 1 less than the
1.1       www         7: number of bubbles on the exam. You can provide more if you want to.
                      8: 
1.2     ! www         9: In Edit mode there is an 'Incorrect Answers:' field you can
        !            10: fill in.
1.1       www        11: 
                     12: Minimal example problem:
1.2     ! www        13: \begin{verbatim}
1.1       www        14: <problem>
                     15:   <script type="loncapa/perl">
                     16:     $answer=1;
                     17:     @incorrects=(2,3,4,5,6,7,8);
                     18:   </script>
                     19:   <startoutext />
                     20:     Correct answer is 1. <br />
                     21:   <endouttext />
                     22:   <numericalresponse answer="$answer" incorrect="@incorrects">
                     23:     <textline />
                     24:   </numericalresponse>
                     25: </problem>
1.2     ! www        26: \end{verbatim}

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