Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3263 bpr 1
 
2
:Command list
3
 
4
:directive,number of<br>parameters,description,optional parameters,recognized option word
5
:title
6
1
7
defines the title of the exercise
8
:language
9
1
10
defines the language of the exercise, such as <tt>en</tt> or <tt>fr</tt>
11
:author
12
1
13
defines the author of the exercise
14
:email
15
1
16
defines the author's email
17
:format
18
1
19
format of the statement
20
 
21
 
22
help=format
23
:css 
24
1 
25
defines css style
26
:precision
27
1
28
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.
29
:range
30
1
31
variable range when evaluating a function supplied by the user. Should be given in the form <tt>n1..n2</tt>, where n1 is the start point, n2 is the end point.
32
 
33
:statement
34
1
35
the parameter is the statement of the exercise
36
 
37
:answer
38
2-5
39
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. 
40
type option weight
41
 
42
help=reply
43
:choice
44
3-5
45
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.
46
option weight
47
shuffle noidontknow
48
:condition
49
2-4
50
defines a special condition for the evaluation of freestyle answers.
51
option weight
52
 
53
help=reply
54
:solution
55
1
56
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.
57
:hint
58
1
59
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.
60
:help
61
1
62
gives a help to the exercise. This help will always be accessible to the user, in a popup window.
63
:feedback
64
2
65
gives a feedback warning to the user when the answer meeds a specified condition. Usually to warn of a typical
66
error.
67
 
68
 
69
help=feedback
3294 bpr 70
:steps
71
1
72
define the questions of each step of the exercise ; must before the instruction <tt>statement</tt>(see the variable</tt>\step</tt>).
73
 
74
 
75
:nextstep
76
1
77
define the questions of each step of the exercise in a dynamic way ; must before the instruction <tt>statement</tt>(see the variable</tt>\step</tt>).sert à définir de manière dynamique les questions qui devront être posées ; doit être mis avant la commande <tt>statement</tt> (voir la variable </tt>\step</tt>).
78
 
79
 
80
:conditions
81
1
82
define the numbers of the conditions useful for the exercise.