:directive,number of<br>parameters,description,optional parameters,recognized option word
:title
1
defines the title of the exercise
:language
1
defines the language of the exercise, such as <tt>en</tt> or <tt>fr</tt>
:author
1
defines the author of the exercise
:email
1
defines the author's email
:format
1
format of the statement
help=format
:css
1
defines css style
:precision
1
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.
1
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
.
:statement
1
the parameter is the statement of the exercise
:answer
2-5
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.
type option weight
help=reply
:choice
3-5
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
.
option weight
:condition
2-4
defines a special condition for the evaluation of freestyle answers.
option weight
help=reply
:solution
1
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.
:hint
1
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.
:help
1
gives a help to the exercise. This help will always be accessible to the user, in a popup window.
:feedback
2
gives a feedback warning to the user when the answer meeds a specified condition. Usually to warn of a typical
error.
help=feedback