Subversion Repositories wimsdev

Rev

Rev 6250 | Rev 8825 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!set typelist1=!trim\
2
default,Auto,automatic determination of some basic types\
3297 bpr 3
raw,Raw text,control of comparison by options\
23 reyssat 4
numeric,Number, with tolerance of precision\
5
function,Numerical function, function with numerical tests\
1965 bpr 6
equation,Numerical equation,equation with numerical tests\
3297 bpr 7
exp|algexp litexp formal,Mathematical expression, with formal comparison\
8
text|case nocase,Text, words or sentences\
4537 bpr 9
multiple|checkbox click menu radio mark flashcard multipleclick,Controlable multiple choices,buttons or menus\
23 reyssat 10
 
11
!set typelist2=!trim\
12
atext,Approximative text, with identification of singular and plural etc.\
1965 bpr 13
chembrut,Raw formula of a molecule,in chemistry\
14
chemdraw,Draw a molecule,with Java applet\
2616 bpr 15
chemclick,Select atoms or bonds in a molecule,with Java applet\
23 reyssat 16
chemeq,Chemical equation, with balance analysis\
3385 bpr 17
chset,Set of characters,\
3297 bpr 18
clickfill|clickfill dragfill,Drag-and-drop objets,text and image\
984 bpr 19
clicktile,Click and color tiles, need java\
23 reyssat 20
compose,Compose, using given components\
21
coord,Click on image, recognition of coordinates and various regions\
22
correspond,Correspondance, establish the correspondance between pairs of objects\
3385 bpr 23
crossword,Crosswords\
4518 bpr 24
chessgame,Déplacement de pièces sur un échiquier\
2097 bpr 25
geogebra,Dynamic geometry,use applet GeoGebra\
26
javacurve,Java draw,\
27
jmolclick,Click on 3D atoms, use applet Jmol\
6584 bpr 28
jsxgraph,Dynamic geometry,use JSXGraph\
29
jsxgraphcurve, JSXgraph Draw, permettant des tracés avec des formes prédéfinies ou libres\
2616 bpr 30
keyboard,Text, with keyboard\
23 reyssat 31
matrix,Matrix, mathematical\
32
numexp,Rational numbers, fractional writing\
3350 bpr 33
puzzle,Make in order an image, as in a puzzle\
23 reyssat 34
range,Number within a given range, anything within the range is accepted\
35
reorder,Reordering, given list of objects\
3297 bpr 36
set|set fset aset,Finite set,literal, formal or approximative\
23 reyssat 37
sigunits,Sigunits,number with unit and significant digits\
38
symtext,Symtext,advanced tool of text identification\
39
units,Number with unit, for physics\
40
vector,Vector,formal comparison of components\
41
wlist,List of words,\
42
 
43
 
44
!set namelist=Basic types, Specific or advanced types
45
!set symtextlist=text atext raw compose
46
 
6133 bpr 47
<h3>User replies to an exercise</h3>
23 reyssat 48
 
49
There are two basic ways in which an OEF exercise accepts user replies:
50
multiple choices and freestyle replies. User answers will be analyzed
51
according to the nature of the types. It is also possible to show
52
!href cmd=help&special_parm=feedback feedbacks
53
 to the user when the answer meeds a specified condition (usually to warn a
54
typical error).
55
 
6133 bpr 56
<h4>Multiple choices</h4>
23 reyssat 57
A multiple choice is defined by giving a list of good choices (one or
58
several) and another list of bad choices. <p>
59
Up to $choicelim simultaneous multiple choice questions can be asked for
60
one exercise, under the current implementation. The number of good and bad
61
choices within one multiple choice question is unlimited (except a limit on
62
the length of the string imposed by WIMS).
63
<p>
64
See
65
!href cmd=help&special_parm=oef help on OEF format
66
 for the syntax to define a multiple choice.
3797 bpr 67
 
5912 bpr 68
<a id="freestyle"></a>
6133 bpr 69
<h4>Freestyle answers</h4>
23 reyssat 70
A freestyle answer is one which is typed by the user.
71
Up to $answerlim simultaneous freestyle answers can be asked for one
72
exercise, under the current implementation. <p>
73
The syntax is as follows:
4091 bpr 74
<pre>
75
\answer{Texte}{\reponse}{type=...}{option=...}{weight=...}
76
</pre>
23 reyssat 77
(The last 3 fields are optional.)
6133 bpr 78
 
79
<h3>The parameter <span class="tt wims_code_words">type</span></h3>
23 reyssat 80
<p>
81
Each freestyle answer can independently take one of the following types.
6133 bpr 82
</p>
23 reyssat 83
!for i=1 to 2
6133 bpr 84
 <span class="bold">$(namelist[$i])</span>
23 reyssat 85
 !set n=!linecnt $(typelist$i)
86
 <ul>
87
 !for j=1 to $n
88
  !set l=!line $j of $(typelist$i)
89
  !distribute item $l into name,title
90
  !set desc=!item 3 to -1 of $l
3297 bpr 91
  !set name=!replace internal | by , in $name
92
  !set name1=!item 2 to -1 of $name
93
  !set name=!item 1 of $name
94
  !default name1=$name
23 reyssat 95
  !if $name isitemof $special_parm or all isitemof $special_parm
6133 bpr 96
   <li><a id="_$name"></a>
23 reyssat 97
   !read help/anstype/$name.phtml
98
   !if $name iswordof $symtextlist
99
    <p>
100
    <b>Remark</b>.
101
    This type of reply accepts the symtext option. If the word
5903 bpr 102
    <span class="tt wims_code_words">symtext</span> is declared in the option of the reply, the analysis of
23 reyssat 103
    the reply will be exactly as for
104
    !href cmd=help&special_parm=reply,symtext#_symtext symtext
105
, in particular with no preliminary processing of the texts. And all the
106
symtext options will be understood in this case.
6133 bpr 107
    </p>
23 reyssat 108
   !endif
109
  !else
6250 bpr 110
   <li>
23 reyssat 111
   !href cmd=help&special_parm=reply,$name#_$name $title
5903 bpr 112
   (<span class="tt wims_code_words">$name1</span>) $desc.
23 reyssat 113
  !endif
6133 bpr 114
  </li>
23 reyssat 115
 !next j
116
 </ul>
117
!next i
118
 
3797 bpr 119
!read help/$lang/embedans.phtml
120
 
6133 bpr 121
<h3>The optional parameter <span class="tt wims_code_words">weight</span></h3>
5912 bpr 122
<a id="weight"></a>
3797 bpr 123
It is possible to give a weight to answers.
23 reyssat 124
<p>
3797 bpr 125
Example :
6133 bpr 126
</p>
3797 bpr 127
<pre>\answer{}{1}{type=numeric}{weight=8}
128
\answer{}{1}{type=numeric}{weight=2}
129
</pre>
6133 bpr 130
<p>
3797 bpr 131
Le niveau de sévérité  sera aussi pris en compte lors du
132
calcul fait et le pourcentage sera pris sur un pourcentage fixé
133
par le niveau de sévérité.
6133 bpr 134
</p><p>
5903 bpr 135
One can put variables in <span class="tt wims_code_words">weight</span>
136
if they are defined before <span class="tt wims_code_variable">\statement</span>.
6133 bpr 137
 
3797 bpr 138
<p>
139
Example :
6133 bpr 140
</p>
3797 bpr 141
<pre>
142
\text{w = \t = 1 ? 1 : 2}
5377 bpr 143
\answer{}{1}{type=numeric}{weight=\w}
3797 bpr 144
\answer{}{1}{type=numeric}{weight=3}
145
</pre>
146
 
6133 bpr 147
<h3>Le paramètre optionnel <span class="tt wims_code_words">option</span></h3>
5912 bpr 148
 <a id="option"></a>
3797 bpr 149
 Dans le cas de plusieurs options, elles sont séparées par des espaces.
5903 bpr 150
 For example, <span class="tt wims_code_words">option=default noanalyzeprint</span>
3797 bpr 151
 
5903 bpr 152
Les options possibles à la suite d'une instruction <span class="tt wims_code_variable">answer</span>
153
ou <span class="tt wims_code_variable">condition</span> sont
3797 bpr 154
<ul>
5903 bpr 155
<li><span class="tt wims_code_words">option=default</span> : The option <span class="tt wims_code_words">default</span> is common for all free answers :
3797 bpr 156
This option can take
5903 bpr 157
the form <span class="tt wims_code_words">default="default_value"</span>. If the
23 reyssat 158
user gives an empty reply, it is the default_value that will take place.
3797 bpr 159
</li>
160
<li>
5903 bpr 161
<span class="tt wims_code_words">option=split</span> : In case of type <span class="tt wims_code_words">correspond</span>, <span class="tt wims_code_words">checkbox</span> or <span class="tt wims_code_words">mark</span>,
3797 bpr 162
there will be partial score.
163
</li>
164
<li>
5903 bpr 165
<span class="tt wims_code_words">option=nonstop</span> : In case of step exercises,
3797 bpr 166
following questions are asked even if the answer is false.
167
</li>
5903 bpr 168
<li><span class="tt wims_code_words">option=noanalyzeprint</span> : Le texte automatique d'analyse de réponses n'est
3797 bpr 169
pas affiché. C'est donc à l'auteur de l'exercice de fournir un feedback convenable.
5903 bpr 170
Cela est utile dans certains types comme le type <span class="tt wims_code_words">mark</span> où le texte automatique
3797 bpr 171
est souvent inadéquat. Attention, l'analyse des conditions n'est pas non plus affichée.
172
Seul le score subsiste.</li>
5903 bpr 173
<li>Following the instruction <span class="tt wims_code_words">condition</span>,
174
<span class="tt wims_code_words">option=hide</span> :The condition is used to analyze the
3797 bpr 175
answer but will not be printed.
176
</li>
177
</ul>
178
D'autres options peuvent être utilisables dans des types particuliers de réponses.
6133 bpr 179
 
180
<h3>Testing conditions</h3>
3797 bpr 181
<p>
23 reyssat 182
Under certain circumstances, it is desired that freestyle answers be tested
183
by special conditions (questions with multiple good answers, exercises
184
asking for examples, answers determined by inequalities, etc). This can be
185
done in the following way. <p>
186
If the good answer to a freestyle question is an undefined variable, the
187
answer to this question will be fed into this variable. The latter can then
188
be used to implement testing conditions. The score given to the exercise is
189
then determined by the number of testing conditions which are met, rather
190
than the number of answers which meet the good answers.
6133 bpr 191
</p><p>
23 reyssat 192
Up to $condlim simultaneous conditions can be defined for one
193
exercise, under the current implementation. The syntax is as follows.
6133 bpr 194
</p><pre>
23 reyssat 195
\condition{prompt text}{testing conditions}{weight=...}
4091 bpr 196
</pre>
23 reyssat 197
(The last field is optional.)
198
<p>
5903 bpr 199
Here are some examples of testing conditions. (<span class="tt wims_code_variable">ans1</span> and
200
<span class="tt wims_code_variable">ans2</span> are undefined variables appearing in freestyle answers, as
23 reyssat 201
described above.)
6133 bpr 202
 
23 reyssat 203
!href target=wims_mhelp cmd=help&special_parm=if Complete list of relations
6133 bpr 204
 
205
</p>
23 reyssat 206
$table_header
3797 bpr 207
$table_hdtr<th>Condition</th><th>meaning</th></tr>
4091 bpr 208
$table_tr<td><tt class="wims_code_variable">ans1>=0 and \ans1<=1</tt></td>
5903 bpr 209
    <td>Good if <span class="tt wims_code_words">ans1</span> is within the interval [0,1].</td></tr>
6133 bpr 210
$table_tr<td class="tt wims_code_variable">ans1=1 or \ans1=3 or \ans1=5</td>
5903 bpr 211
    <td>Good if <span class="tt wims_code_words">ans1</span> is 1, 3 or 5.</td></tr>
6133 bpr 212
$table_tr<td class="tt wims_code_words">(\ans1)*(\ans2)=6 and (\ans1)+(\ans2)=5</td>
5903 bpr 213
    <td>Good if <span class="tt wims_code_words">ans1</span> and <span class="tt wims_code_words">ans2</span> are the two
3797 bpr 214
    roots of the polynomial x<sup>2</sup>-5x+6.</td></tr>
6133 bpr 215
$table_tr<td class="tt wims_code_words">sin(\ans1)=0</td>
5903 bpr 216
    <td>Good if <span class="tt wims_code_words">ans1</span> is a multiple of $m_pi.</td></tr>
6133 bpr 217
$table_end
23 reyssat 218
See
219
!href cmd=help&special_parm=oef help on oef format
220
 for the syntax for defining replies.
221