Subversion Repositories wimsdev

Rev

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

Rev 5448 Rev 7137
Line 24... Line 24...
24
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
24
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
25
 
25
 
26
:\title{Classer par propriété}
26
:\title{Classer par propriété}
27
:\author{XIAO, Gang}
27
:\author{XIAO, Gang}
28
:\email{xiao@unice.fr}
28
:\email{xiao@unice.fr}
-
 
29
:\credits{}
29
 
30
 
30
:Nombre d'objets à classer par exercice. Jusqu'à 20.
31
:Nombre d'objets à classer par exercice. Jusqu'à 20.
31
\integer{tot=8}
32
\integer{tot=8}
32
 
33
 
33
: Le nombre maximal d'objets présentés ayant une même propriété.
34
: Le nombre maximal d'objets présentés ayant une même propriété.
Line 92... Line 93...
92
Ajouter le mot <span class="wims_code_words">shuffle</span> si on veut que l'ordre des propriétés soit
93
Ajouter le mot <span class="wims_code_words">shuffle</span> si on veut que l'ordre des propriétés soit
93
aléatoire.
94
aléatoire.
94
\text{option=}
95
\text{option=}
95
 
96
 
96
:Texte avant le tableau. Balises html admises.
97
:Texte avant le tableau. Balises html admises.
97
\text{pre=Classez les animaux ci-dessous selon leurs catégories. <p>}
98
\text{pre=Classez les animaux ci-dessous selon leurs catégories.}
98
 
99
 
99
:Texte après le tableau. Balises html admises.
100
:Texte après le tableau. Balises html admises.
100
\text{post=}
101
\text{post=}
101
 
102
 
102
:Verbe et article à afficher devant la catégorie classée.
103
:Verbe et article à afficher devant la catégorie classée.
Line 173... Line 174...
173
::La commande pour afficher le champs de réponse numéro 3 par exemple,
174
::La commande pour afficher le champs de réponse numéro 3 par exemple,
174
c'est \embed{reply 3,\size} <p>
175
c'est \embed{reply 3,\size} <p>
175
Et le nom de la propriété numéro 4, c'est \prop[4] avec la première lettre
176
Et le nom de la propriété numéro 4, c'est \prop[4] avec la première lettre
176
en majuscule, ou \props[4] tout en minuscule.
177
en majuscule, ou \props[4] tout en minuscule.
177
 
178
 
178
\statement{\pre
179
\statement{<div class="instruction">
179
 
180
\pre
-
 
181
</div>
180
<table border="0">
182
<table class="wimsnoborder">
181
\for{k=1 to \prop_cnt}{
183
\for{k=1 to \prop_cnt}{
182
 <tr><td align="left">\prop[\k]</td>
184
 <tr><th>\prop[\k]</th>
183
 <td>\embed{reply \k, \size}
185
 <td>\embed{reply \k, \size}
184
 </td></tr>
186
 </td></tr>
185
}
187
}
186
</table>
188
</table>
187
\post}
189
\post}
188
 
190
 
189
:%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5
191
:%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5
190
 
192
 
191
\answer{\prop[1]}{\r1;\all}{type=dragfill}
193
\answer{\prop[1]}{\r1;\all,\dist}{type=dragfill}
192
\answer{\prop[2]}{\r2}{type=dragfill}
194
\answer{\prop[2]}{\r2}{type=dragfill}
193
\answer{\prop[3]}{\r3}{type=dragfill}
195
\answer{\prop[3]}{\r3}{type=dragfill}
194
\answer{\prop[4]}{\r4}{type=dragfill}
196
\answer{\prop[4]}{\r4}{type=dragfill}
195
\answer{\prop[5]}{\r5}{type=dragfill}
197
\answer{\prop[5]}{\r5}{type=dragfill}
196
\answer{\prop[6]}{\r6}{type=dragfill}
198
\answer{\prop[6]}{\r6}{type=dragfill}
Line 224... Line 226...
224
 }{
226
 }{
225
  \text{clean=\clean \noclass,}
227
  \text{clean=\clean \noclass,}
226
  \text{check=\check 0,}
228
  \text{check=\check 0,}
227
 }
229
 }
228
}
230
}
229
\integer{cat=0}
231
 
230
\if{\dist!=}{
232
\if{\dist!=}{
231
 \for{t=1 to 1}{
233
 \for{t=1 to 1}{
-
 
234
   \integer{cat=0}
232
  \text{all=\all,\dist}
235
   \for{r=1 to \prop_cnt}{
233
  \integer{cat=\dist[\t] iswordof \totans[\r]?\r}
236
    \integer{cat=\dist[\t] iswordof \totans[\r]?\r}
-
 
237
   }
234
  \if{\cat = 0}{
238
 \if{\cat = 0}{
235
   \text{clean=\clean \dist[\t] \noclass,}
239
   \text{clean=\clean \dist[\t] \noclass,}
236
   \text{check=\check 1,}
240
   \text{check=\check 1,}
237
  }{
241
  }{
238
   \text{clean=\clean \estun \props[\cat],}
242
   \text{clean=\clean \dist[\t] \estun \props[\cat],}
239
   \text{check=\check 0,}
243
   \text{check=\check 0,}
240
  }
244
  }
241
 }
245
 }
242
}
246
}
243
 
247