File:
[LON-CAPA] /
loncom /
html /
adm /
help /
ext_examples.problem
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Wed Feb 26 15:41:38 2014 UTC (10 years, 11 months ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_6_msu,
version_2_11_6,
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,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0,
HEAD
- Fix spelling, improve wording, ensure consistent case usage and punctuation.
- Fix typo in tag name, and add missing tags.
1: <problem>
2: <import id="11">ext_examples.library</import>
3: <startouttext />
4: <hr />
5: Some things to do with &EXT() inside of a homework problem.<br />
6: Any data that show up in the 'all submissions with details' view in problem grades are available, as are the current values of some parameters.
7: <table border="1">
8: <tr><th>Incantation</th><th>result</th><th>Explanation</th></tr>
9: <tr><td>user.resource.resource.<partid>.<responseid>.submission</td><td>&EXT('user.resource.resource.0.12.submission')</td>
10: <td>Text of the most recent submission</td></tr>
11: <tr><td>user.resource.resource.<partid>.<responseid>.awarddetail</td><td>&EXT('user.resource.resource.0.12.awarddetail')</td>
12: <td>Details of how the most recent submission was graded</td></tr>
13: <tr><td>user.resource.1:resource.<partid>.<responseid>.submission</td><td>&EXT('user.resource.1:resource.0.12.submission')</td>
14: <td>Text of the submission on the first submission to the problem. The '1:' is not necessarily the first try on the problem, rather it refers to the first 'transaction' in the data for this problem. Take a look at problem grades for a problem with the submissions view set to 'all submissions with details'.</td></tr>
15:
16: <tr><td>user.resource.resource.<partid>.tries</td><td>&EXT('user.resource.resource.0.tries')</td>
17: <td>current number of tries on the problem</td></tr>
18: <tr><td>user.resource.resource.<partid>.solved</td><td>&EXT('user.resource.resource.0.solved')</td>
19: <td>current status of the problem</td></tr>
20: <tr><td>user.resource.resource.<partid>.awarded</td><td>&EXT('user.resource.resource.0.awarded')</td>
21: <td>A floating point number between 0 and 1 inclusive, that is the percentage of the weight for this problem.</td></tr>
22: <tr><td>user.resource.resource.<partid>.award</td><td>&EXT('user.resource.resource.0.award')</td>
23: <td>Detailed award determined by how the most recently graded part was graded. (This will be one of the <responseid>'s <tt>awarddetail</tt>).</td></tr>
24: </table>
25: <hr />
26: You can get access to the current values of some parameters. But these only work reliably in a published problem which is in a course. <br />
27: <table border="1">
28: <tr><th>Incantation</th><th>Result</th><th>Explanation</th></tr>
29: <tr><td>resource.<partid>.<responseid>.tolerance</td><td>&EXT('resource.0.12.tolerance')</td>
30: <td>Current setting of the tolerance parameter for the particular response.</td></tr>
31: <tr><td>resource.<partid>.maxtries</td><td>&EXT('resource.0.maxtries')</td>
32: <td>Current setting for the maximum number of tries for the part.</td></tr>
33:
34: </table>
35: <hr /><endouttext />
36: <startouttext />
37: <br />The answer is 1<br />
38: <endouttext />
39: <numericalresponse id="12" answer="1">
40: <responseparam description="Numerical Tolerance" default="5%" type="tolerance" name="tol" />
41: <textline />
42: </numericalresponse>
43: </problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>