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, 11 months ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
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.
1: \label{numerical_wrong_answers}
2: When switched into exam (``bubble sheet'') mode,
3: LON-CAPA usually creates wrong answers automatically.
4: To specify wrong answers yourself, you need to provide an array of incorrect
5: values to the <numericalresponse> through the `incorrect' attribute.
6: You need to provide at least as many incorrects as 1 less than the
7: number of bubbles on the exam. You can provide more if you want to.
8:
9: In Edit mode there is an `Incorrect Answers:' field you can
10: fill in.
11:
12: Minimal example problem:
13: \begin{verbatim}
14: <problem>
15: <script type="loncapa/perl">
16: $answer=1;
17: @incorrects=(2,3,4,5,6,7,8);
18: </script>
19: <startouttext />
20: Correct answer is 1. <br />
21: <endouttext />
22: <numericalresponse answer="$answer" incorrect="@incorrects">
23: <textline />
24: </numericalresponse>
25: </problem>
26: \end{verbatim}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>