Subversion Repositories wimsdev

Rev

Rev 8552 | Rev 10950 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8552 Rev 9227
Line 20... Line 20...
20
 
20
 
21
:format
21
:format
22
1
22
1
23
format of the statement
23
format of the statement
24
 
24
 
25
 
25
 
26
help=format
26
help=format
27
:css
27
:css
28
1
28
1
29
defines css style
29
defines css style
-
 
30
 
-
 
31
:keywords
-
 
32
1
-
 
33
Exercise keywords
-
 
34
 
-
 
35
:credits
-
 
36
1
-
 
37
allows to insert credits at the end of the exercise (variables are evaluated).
-
 
38
 
-
 
39
:description
-
 
40
1
-
 
41
description of the exercise for the students
-
 
42
 
-
 
43
:observation
-
 
44
1
-
 
45
description of the exercise for the teacher
30
 
46
 
31
:precision
47
:precision
32
1
48
1
33
precision in comparing user's reply with the solution. Give a positive integer n here: the comparison will be done to the precision of 1/n.
49
precision in comparing user's reply with the solution. Give a positive integer n here: the comparison will be done to the precision of 1/n.
34
 
50
 
Line 39... Line 55...
39
:computeanswer
55
:computeanswer
40
1
56
1
41
The instruction <span class="tt wims_code_words">\computeanswer{ no }</span> specifies that the user should complete calculations by himself and enter the final value. On the other hand, if we specify <span class="tt wims_code_words">\computeanswer{ yes }</span>, the user may enter a formula like <span class="tt wims_code_words">5*5</span>,  letting the computer make the calculations.
57
The instruction <span class="tt wims_code_words">\computeanswer{ no }</span> specifies that the user should complete calculations by himself and enter the final value. On the other hand, if we specify <span class="tt wims_code_words">\computeanswer{ yes }</span>, the user may enter a formula like <span class="tt wims_code_words">5*5</span>,  letting the computer make the calculations.
42
 
58
 
43
:statement
59
:statement
44
1
60
1
45
the parameter is the statement of the exercise. Can be used only one time in the exercise.
61
the parameter is the statement of the exercise. Can be used only one time in the exercise.
46
 
62
 
47
:answer
63
:answer
48
2-5
64
2-5
49
defines a freestyle answer. The first parameter is the prompt of the answer, and the second is the good answer.  Such an answer can be tested according to many different types: number, function, text, etc.
65
defines a freestyle answer. The first parameter is the prompt of the answer, and the second is the good answer.  Such an answer can be tested according to many different types: number, function, text, etc.
50
type option weight
66
type option weight
51
reorder shuffle nonstop
67
reorder shuffle nonstop
52
help=reply
68
help=reply
53
 
69
 
54
:choice
70
:choice
55
3-5
71
3-5
56
defines a multiple choice. The first parameter is the prompt of the choice, the second the good choice(s), and the third the other choice(s). The last two parameters may (should) be a comma-separated list. Multiple good choices are allowed. If a choice appears in both good and bad choice lists, it will be taken as good.
72
defines a multiple choice. The first parameter is the prompt of the choice, the second the good choice(s), and the third the other choice(s). The last two parameters may (should) be a comma-separated list. Multiple good choices are allowed. If a choice appears in both good and bad choice lists, it will be taken as good.
57
option weight
73
option weight
58
shuffle noidontknow
74
shuffle noidontknow
Line 64... Line 80...
64
 
80
 
65
help=reply
81
help=reply
66
 
82
 
67
:solution
83
:solution
68
1
84
1
69
gives the solution of the exercise with explanation. The OEF manager may decide on whether to show this explained solution to the user, according to the user setup of the difficulty level. Can be used only one time in the exercise. 
85
gives the solution of the exercise with explanation. The OEF manager may decide on whether to show this explained solution to the user, according to the user setup of the difficulty level. Can be used only one time in the exercise.
70
 
86
 
71
:hint
87
:hint
72
1
88
1
73
gives a hint of the exercise. The OEF manager may decide on whether to show the hint, according to the user setup of the difficulty level. Can be used only one time in the exercise. 
89
gives a hint of the exercise. The OEF manager may decide on whether to show the hint, according to the user setup of the difficulty level. Can be used only one time in the exercise.
74
 
90
 
75
:help
91
:help
76
1
92
1
77
gives a help to the exercise. This help will always be accessible to the user, in a popup window. Can be used only one time in the exercise. 
93
gives a help to the exercise. This help will always be accessible to the user, in a popup window. Can be used only one time in the exercise.
78
 
94
 
79
:feedback
95
:feedback
80
2
96
2
81
gives a feedback warning to the user when the answer meeds a specified condition. Usually to warn of a typical error.
97
gives a feedback warning to the user when the answer meeds a specified condition. Usually to warn of a typical error.
82
 
98
 
83
 
99
 
84
help=feedback
100
help=feedback
85
 
101
 
86
:steps
102
:steps
87
1
103
1
88
defines the questions of each step of the exercise ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise. 
104
defines the questions of each step of the exercise ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise.
89
 
105
 
90
:nextstep
106
:nextstep
91
1
107
1
92
defines the questions of each step of the exercise in a dynamic way ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise. 
108
defines the questions of each step of the exercise in a dynamic way ; must be before the instruction <span class="tt wims_code_words">statement</span> (see the variable <span class="tt wims_code_words">\step</span>). Can be used only one time in the exercise.
93
 
109
 
94
:conditions
110
:conditions
95
1
111
1
96
defines the numbers of the conditions useful for the exercise.
112
defines the numbers of the conditions useful for the exercise.
97
 
113
 
98
:latex
114
:latex
99
1
115
1
100
allows to write a latex version of the exercise using the variables defined in the exercise and downloadable in the printable version of the exercise (accessible only by developers or teachers of a class). It is advisable to put the statement in a predefined environment latex <span class="tt wims_code_words">\begin{statement} \end{statement}</span> and the solution in the environment <span class="tt wims_code_words">\begin{sol} ... \end{sol}</span>.
116
allows to write a latex version of the exercise using the variables defined in the exercise and downloadable in the printable version of the exercise (accessible only by developers or teachers of a class). It is advisable to put the statement in a predefined environment latex <span class="tt wims_code_words">\begin{statement} \end{statement}</span> and the solution in the environment <span class="tt wims_code_words">\begin{sol} ... \end{sol}</span>.
101
 
-
 
102
:credits
-
 
103
1
-
 
104
allows to insert credits at the end of the exercise (variables are evaluated).
-