Subversion Repositories wimsdev

Rev

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