Subversion Repositories wimsdev

Rev

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

Rev 6584 Rev 8825
Line 59... Line 59...
59
Up to $choicelim simultaneous multiple choice questions can be asked for
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
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
61
choices within one multiple choice question is unlimited (except a limit on
62
the length of the string imposed by WIMS).
62
the length of the string imposed by WIMS).
63
<p>
63
<p>
64
See
64
See
65
!href cmd=help&special_parm=oef help on OEF format
65
!href cmd=help&special_parm=oef help on OEF format
66
 for the syntax to define a multiple choice.
66
 for the syntax to define a multiple choice.
67
 
67
 
68
<a id="freestyle"></a>
68
<a id="freestyle"></a>
69
<h4>Freestyle answers</h4>
69
<h4>Freestyle answers</h4>
Line 78... Line 78...
78
 
78
 
79
<h3>The parameter <span class="tt wims_code_words">type</span></h3>
79
<h3>The parameter <span class="tt wims_code_words">type</span></h3>
80
<p>
80
<p>
81
Each freestyle answer can independently take one of the following types.
81
Each freestyle answer can independently take one of the following types.
82
</p>
82
</p>
83
!for i=1 to 2
83
!for k=1 to 2
84
 <span class="bold">$(namelist[$i])</span>
84
 <span class="bold">$(namelist[$k])</span>
85
 !set n=!linecnt $(typelist$i)
85
 !set n=!linecnt $(typelist$k)
86
 <ul>
86
 <ul>
87
 !for j=1 to $n
87
 !for j=1 to $n
88
  !set l=!line $j of $(typelist$i)
88
  !set l=!line $j of $(typelist$k)
89
  !distribute item $l into name,title
89
  !distribute item $l into name,title
90
  !set desc=!item 3 to -1 of $l
90
  !set desc=!item 3 to -1 of $l
91
  !set name=!replace internal | by , in $name
91
  !set name=!replace internal | by , in $name
92
  !set name1=!item 2 to -1 of $name
92
  !set name1=!item 2 to -1 of $name
93
  !set name=!item 1 of $name
93
  !set name=!item 1 of $name
Line 120... Line 120...
120
 
120
 
121
<h3>The optional parameter <span class="tt wims_code_words">weight</span></h3>
121
<h3>The optional parameter <span class="tt wims_code_words">weight</span></h3>
122
<a id="weight"></a>
122
<a id="weight"></a>
123
It is possible to give a weight to answers.
123
It is possible to give a weight to answers.
124
<p>
124
<p>
125
Example :
125
Example :
126
</p>
126
</p>
127
<pre>\answer{}{1}{type=numeric}{weight=8}
127
<pre>\answer{}{1}{type=numeric}{weight=8}
128
\answer{}{1}{type=numeric}{weight=2}
128
\answer{}{1}{type=numeric}{weight=2}
129
</pre>
129
</pre>
130
<p>
130
<p>
131
Le niveau de sévérité  sera aussi pris en compte lors du
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é
132
calcul fait et le pourcentage sera pris sur un pourcentage fixé
133
par le niveau de sévérité.
133
par le niveau de sévérité.
134
</p><p>
134
</p><p>
135
One can put variables in <span class="tt wims_code_words">weight</span>
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>.
136
if they are defined before <span class="tt wims_code_variable">\statement</span>.
137
 
137
 
138
<p>
138
<p>
Line 144... Line 144...
144
\answer{}{1}{type=numeric}{weight=3}
144
\answer{}{1}{type=numeric}{weight=3}
145
</pre>
145
</pre>
146
 
146
 
147
<h3>Le paramètre optionnel <span class="tt wims_code_words">option</span></h3>
147
<h3>Le paramètre optionnel <span class="tt wims_code_words">option</span></h3>
148
 <a id="option"></a>
148
 <a id="option"></a>
149
 Dans le cas de plusieurs options, elles sont séparées par des espaces.
149
 Dans le cas de plusieurs options, elles sont séparées par des espaces.
150
 For example, <span class="tt wims_code_words">option=default noanalyzeprint</span>
150
 For example, <span class="tt wims_code_words">option=default noanalyzeprint</span>
151
 
151
 
152
Les options possibles à la suite d'une instruction <span class="tt wims_code_variable">answer</span>
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
153
ou <span class="tt wims_code_variable">condition</span> sont
154
<ul>
154
<ul>
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 :
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 :
156
This option can take
156
This option can take
157
the form <span class="tt wims_code_words">default="default_value"</span>. If the
157
the form <span class="tt wims_code_words">default="default_value"</span>. If the
158
user gives an empty reply, it is the default_value that will take place.
158
user gives an empty reply, it is the default_value that will take place.
159
</li>
159
</li>
160
<li>
160
<li>
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>,
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>,
162
there will be partial score.
162
there will be partial score.
163
</li>
163
</li>
164
<li>
164
<li>
165
<span class="tt wims_code_words">option=nonstop</span> : In case of step exercises,
165
<span class="tt wims_code_words">option=nonstop</span> : In case of step exercises,
166
following questions are asked even if the answer is false.
166
following questions are asked even if the answer is false.
167
</li>
167
</li>
168
<li><span class="tt wims_code_words">option=noanalyzeprint</span> : Le texte automatique d'analyse de réponses n'est
168
<li><span class="tt wims_code_words">option=noanalyzeprint</span> : Le texte automatique d'analyse de réponses n'est
169
pas affiché. C'est donc à l'auteur de l'exercice de fournir un feedback convenable.
169
pas affiché. C'est donc à l'auteur de l'exercice de fournir un feedback convenable.
170
Cela est utile dans certains types comme le type <span class="tt wims_code_words">mark</span> où le texte automatique
170
Cela est utile dans certains types comme le type <span class="tt wims_code_words">mark</span> où le texte automatique
171
est souvent inadéquat. Attention, l'analyse des conditions n'est pas non plus affichée.
171
est souvent inadéquat. Attention, l'analyse des conditions n'est pas non plus affichée.
172
Seul le score subsiste.</li>
172
Seul le score subsiste.</li>
173
<li>Following the instruction <span class="tt wims_code_words">condition</span>,
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
174
<span class="tt wims_code_words">option=hide</span> :The condition is used to analyze the
175
answer but will not be printed.
175
answer but will not be printed.
176
</li>
176
</li>
177
</ul>
177
</ul>
178
D'autres options peuvent être utilisables dans des types particuliers de réponses.
178
D'autres options peuvent être utilisables dans des types particuliers de réponses.
179
 
179
 
180
<h3>Testing conditions</h3>
180
<h3>Testing conditions</h3>
181
<p>
181
<p>
182
Under certain circumstances, it is desired that freestyle answers be tested
182
Under certain circumstances, it is desired that freestyle answers be tested
183
by special conditions (questions with multiple good answers, exercises
183
by special conditions (questions with multiple good answers, exercises
184
asking for examples, answers determined by inequalities, etc). This can be
184
asking for examples, answers determined by inequalities, etc). This can be
185
done in the following way. <p>
185
done in the following way. <p>
186
If the good answer to a freestyle question is an undefined variable, the
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
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
188
be used to implement testing conditions. The score given to the exercise is
Line 208... Line 208...
208
$table_tr<td><tt class="wims_code_variable">ans1>=0 and \ans1<=1</tt></td>
208
$table_tr<td><tt class="wims_code_variable">ans1>=0 and \ans1<=1</tt></td>
209
    <td>Good if <span class="tt wims_code_words">ans1</span> is within the interval [0,1].</td></tr>
209
    <td>Good if <span class="tt wims_code_words">ans1</span> is within the interval [0,1].</td></tr>
210
$table_tr<td class="tt wims_code_variable">ans1=1 or \ans1=3 or \ans1=5</td>
210
$table_tr<td class="tt wims_code_variable">ans1=1 or \ans1=3 or \ans1=5</td>
211
    <td>Good if <span class="tt wims_code_words">ans1</span> is 1, 3 or 5.</td></tr>
211
    <td>Good if <span class="tt wims_code_words">ans1</span> is 1, 3 or 5.</td></tr>
212
$table_tr<td class="tt wims_code_words">(\ans1)*(\ans2)=6 and (\ans1)+(\ans2)=5</td>
212
$table_tr<td class="tt wims_code_words">(\ans1)*(\ans2)=6 and (\ans1)+(\ans2)=5</td>
213
    <td>Good if <span class="tt wims_code_words">ans1</span> and <span class="tt wims_code_words">ans2</span> are the two
213
    <td>Good if <span class="tt wims_code_words">ans1</span> and <span class="tt wims_code_words">ans2</span> are the two
214
    roots of the polynomial x<sup>2</sup>-5x+6.</td></tr>
214
    roots of the polynomial x<sup>2</sup>-5x+6.</td></tr>
215
$table_tr<td class="tt wims_code_words">sin(\ans1)=0</td>
215
$table_tr<td class="tt wims_code_words">sin(\ans1)=0</td>
216
    <td>Good if <span class="tt wims_code_words">ans1</span> is a multiple of $m_pi.</td></tr>
216
    <td>Good if <span class="tt wims_code_words">ans1</span> is a multiple of $m_pi.</td></tr>
217
$table_end
217
$table_end
218
See
218
See