Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
3445 bpr 1
type=first
2
textarea="data1 data2 data3 data4 data5 data6 data7 data8 data9 data10"
4576 obado 3
:Questions à choix multiples
3445 bpr 4
 
3451 obado 5
<p>Cet exercice présente des questions à choix multiples.</p>
9925 obado 6
<p>Le nombre de questions est limité à 10. On choisit le nombre de questions
7
à présenter à chaque exercice. Ces questions seront pris au hasard ou pas.</p>
3451 obado 8
<p>Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr></p>
3445 bpr 9
 
10
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
11
 
12
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
13
(Ce sont les lignes qui commencent par un ':'.)
14
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
15
 
16
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
17
 
4793 bpr 18
:\title{QCM à la suite}
5147 bpr 19
:\author{Bernadette, Perrin-Riou}
3445 bpr 20
:\email{bpr@math.u-psud.fr}
6132 bpr 21
:\credits{}
4576 obado 22
:Instruction Globale
3451 obado 23
Tapez ici une instruction commune à toutes les questions de l'exercice
9980 obado 24
$embraced_randitem
3451 obado 25
\text{instruction=Instruction globale : Répondez à chaque question d'une première série, validez, puis répondez aux questions de la seconde série.}
3445 bpr 26
 
27
:Ordre aléatoire
5129 bpr 28
Tapez "yes" pour activer le tirage au sort des questions.
29
Tapez "no" pour les présenter dans l'ordre où elles sont rentrées
3445 bpr 30
\text{alea=yes}
3451 obado 31
 
3452 obado 32
:Nombre maximum de questions par étape
3451 obado 33
WIMS divisera automatiquement votre exercice en étapes en fonction du nombre total de questions définies et du nombre de questions par étapes.
34
\text{N=4}
35
 
3445 bpr 36
:Nombre maximum d'étapes
3452 obado 37
WIMS divisera automatiquement votre exercice en étapes en fonction du nombre total de questions définies et du nombre de questions par étapes.
3445 bpr 38
\text{MAX=2}
3451 obado 39
 
40
:textes pour le feedback "Réponse donnée"
41
 
3445 bpr 42
\text{qcm_prompt1=Votre réponse :}
3451 obado 43
 
44
:textes pour le feedback "La bonne réponse"
45
 
3445 bpr 46
\text{qcm_prompt2=La bonne réponse :}
3451 obado 47
 
48
:textes pour le feedback "Réponse correcte"
49
 
3445 bpr 50
\text{good_answer_text=Bonne réponse}
3451 obado 51
 
52
:textes pour le feedback "Réponse incorrecte"
53
 
3445 bpr 54
\text{bad_answer_text=Mauvaise réponse}
3451 obado 55
 
56
:textes pour le feedback "Réponse incomplète"
57
 
3445 bpr 58
\text{incomplete_answer_text=Réponse incomplète}
3451 obado 59
 
3445 bpr 60
:Style css pour la question
3451 obado 61
 
3445 bpr 62
\text{style_question=background-color: #FFFFCC;
3452 obado 63
color:black;
64
margin: 0 1em 0.5em 1em;
4576 obado 65
padding: 0.2em;}
3451 obado 66
 
3445 bpr 67
:Style css pour la réponse
3451 obado 68
 
3445 bpr 69
\text{style_reponse=background-color: #FFCC99;
70
color: black;
3452 obado 71
margin: 0 1em;
72
padding: 0.2em;}
3451 obado 73
 
3445 bpr 74
:Pourcentage de réussite demandée pour passer à l'étape suivante (si MAX >1)
3451 obado 75
 
3445 bpr 76
\text{percent=0}
3451 obado 77
 
6132 bpr 78
:Mise en aléatoire par des accolades emboitables
79
$embraced_randitem
80
\text{accolade=item(1,1 oui,
81
2 non)}
82
 
9980 obado 83
:Affichage des bonnes réponses
84
Si oui, la liste des bonnes réponses sera affichée une fois la réponse donnée par l'apprenant.
85
\text{answer_given=item(1, oui, non)}
86
 
9925 obado 87
:Question
3452 obado 88
<p>Entrez ici la question à poser, selon le format suivant : </p>
89
<ul>
90
<li>La première ligne est le texte général.</li>
5129 bpr 91
<li>La ligne suivante représente un feedback, qui sera affiché après validation des réponses
92
(elle peut être laissée vide).</li>
3452 obado 93
<li>Entrez ensuite la liste des numéros des bonnes réponses, séparées par des virgules.</li>
94
<li>Les lignes suivantes sont formées des différentes propositions de réponses.</li></ul>
95
<p style="border-left:2px solid orange;width:45em;background-color:white;padding-left:1em;">Exemple : <br/><code>Titre de la Question n°1<br/>
3451 obado 96
explication pour le feedback affiché en cas de mauvaise réponse à la question n°1<br/>
97
Numéro de la bonne réponse<br/>
98
Proposition n°1<br/>
99
Proposition n°2<br/>
100
Proposition n°3</code></p>
3452 obado 101
<p>Attention : les point-virgules sont interdits ici.</p>
3459 bpr 102
\text{data1=En quelle année eut lieu la bataille de Marignan ?
3452 obado 103
Marignan fut la première victoire du jeune roi François Ier, la première année de son règne.
3445 bpr 104
1
105
1515
106
1414
107
1313
3451 obado 108
1616}
3445 bpr 109
 
3451 obado 110
:Question 2
111
 
112
\text{data2=En 2010, quelle est la ville la plus peuplée au monde ?
3452 obado 113
C'est Tokyo, la capitale du Japon (35 millions d'habitants), loin devant Mexico et New York (19 millions d'habitants chacune).
3451 obado 114
1
3452 obado 115
Tokyo
3451 obado 116
Mexico
117
New York
118
Beijing}
119
 
120
:Question 3
121
 
122
\text{data3=Quel est le nom de ce fleuve : <img src="http://upload.wikimedia.org/wikipedia/commons/e/e4/Mekong_River_watershed.png"/>
3459 bpr 123
Environ 70 millions d'habitants vivent directement dans le bassin versant du Mékong.
3451 obado 124
1
125
Le Mékong
126
Le Yangzi Jiang
127
La Volga
128
Le Danube}
129
 
130
:Question 4
131
 
3452 obado 132
\text{data4=Parmi ces différents peintres, lesquels font partie du mouvement impressionniste ?
133
Ingres est associé au courant Romantique, et Raphaël à la Renaissance.
134
1,3
135
Edgar Degas
136
Dominique Ingres
137
Claude Monet
138
Raphaël}
3451 obado 139
 
140
:Question 5
141
 
142
\text{data5=Quel est le cri du chameau ?
3452 obado 143
Le brairement est le cri de l'âne, le bêlement : celui des moutons et des chèvres.
3451 obado 144
1
145
Le blatèrement
146
Le brairement
147
Le bêlement}
148
 
149
:Question 6
150
 
151
\text{data6=Quelle est la formule chimique de la testostérone ?
3452 obado 152
C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub> correspond à la caféine, C<sub>3</sub>H<sub>5</sub>N<sub>3</sub>O<sub>9</sub> à la nitroglycérine, et  C<sub>17</sub>H<sub>19</sub>NO<sub>3</sub> la morphine
3451 obado 153
4
154
C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>
155
C<sub>3</sub>H<sub>5</sub>N<sub>3</sub>O<sub>9</sub>
156
C<sub>17</sub>H<sub>19</sub>NO<sub>3</sub>
157
C<sub>19</sub>H<sub>28</sub>O<sub>2</sub>}
158
 
159
:Question 7
160
 
3459 bpr 161
\text{data7=À partir de quel jour le beaujolais nouveau est-il disponible en vente  ?
162
Le beaujolais nouveau est un vin de primeur, c'est-à-dire un vin de l'année même, dont la commercialisation est autorisée immédiatement après la fin de la vinification.
3451 obado 163
3
164
le premier jeudi de Novembre
165
le deuxième jeudi de Novembre
166
le troisième jeudi de Novembre
167
le quatrième jeudi de Novembre}
168
 
169
:Question 8
170
 
9925 obado 171
\text{data8=Dans le film  <i>"Rain Man"</i>, quel acteur a un frère autiste surdoué ?
3452 obado 172
<i>Rain Man</i> est un film américain réalisé par Barry Levinson, sorti en 1989 en France.
3451 obado 173
2
174
Bruce Willis
175
Tom Cruise
176
Woody Allen}
177
 
178
:Question 9
179
 
180
\text{data9=Le ski nautique est une discipline olympique depuis 1976.
3452 obado 181
L'apparition du ski nautique aux jeux olympiques ne date que de 2004. Toutefois, il avait été sport de démonstration en 1972.
3451 obado 182
2
183
Vrai
184
Faux}
185
 
186
:Question 10
187
 
9925 obado 188
\text{data10=Quel est le premier ballet écrit par Tchaïkovski ?
3452 obado 189
Le Lac des cygnes a été écrit en 1875 et Casse-noisette en 1891.
3451 obado 190
1
191
Le Lac des cygnes
192
Casse-noisette}
193
 
3459 bpr 194
:
3445 bpr 195
\language{fr}
196
\computeanswer{no}
197
\format{html}
198
\text{notepad=slib(utilities/notepad Notepad,small)}
199
\text{audio_file=no}
200
\text{reading_file=no}
201
\text{image_file=no}
202
\text{video_file=no}
203
 
204
 
205
\text{format=checkbox}
206
 
207
\text{style_oef=}
208
\text{style_css=ol li {list-style: upper-alpha; }}
209
\text{paste=yes}
210
\text{pos_rep=inside}
211
\text{second_step=yes}
212
\text{first_step=1}
213
\text{option=}
214
\text{packs=}
215
\text{player=---}
216
\text{player_option= autostart="false" loop="false"}
217
 
9980 obado 218
:%%%%%%%%%%%%%% Rien à modifier jusqu'à l'énoncé %%%%%%%%%%%%%%%%
219
 
3445 bpr 220
\text{data_q=\data1!= ? 1:}
221
\text{data_q=\data2!= ? wims(append item 2 to \data_q)}
222
\text{data_q=\data3!= ? wims(append item 3 to \data_q)}
223
\text{data_q=\data4!= ? wims(append item 4 to \data_q)}
224
\text{data_q=\data5!= ? wims(append item 5 to \data_q)}
225
\text{data_q=\data6!= ? wims(append item 6 to \data_q)}
226
\text{data_q=\data7!= ? wims(append item 7 to \data_q)}
227
\text{data_q=\data8!= ? wims(append item 8 to \data_q)}
228
\text{data_q=\data9!= ? wims(append item 9 to \data_q)}
3451 obado 229
\text{data_q=\data10!= ? wims(append item 10 to \data_q)}
3445 bpr 230
 
9980 obado 231
\text{accolade=wims(word 1 of \accolade)}
232
\text{instruction=\accolade = 1 ? wims(embraced randitem \instruction):\instruction}
3445 bpr 233
 
9980 obado 234
 
3445 bpr 235
\integer{cnt_question=items(\data_q)}
236
 
6946 bpr 237
\text{autocompletion=\format iswordof case ? autocomplete="off"}
3445 bpr 238
\text{player=wims(replace internal - by in \player)}
239
 
240
\integer{first_step=\first_step notwordof 0 ? 1}
241
\text{option_reaccent=\reaccent!=yes ? noreaccent:}
242
\text{nopaste=\paste issametext no ? slib(utilities/nopaste )}
243
 
9925 obado 244
\text{audio=\audio_file notsametext  and  \audio_file notsametext no?
6946 bpr 245
<div class="wimscenter">slib(media/audio \imagedir/\audio_file,\player_option,player=\player)</div>}
3445 bpr 246
 
9925 obado 247
\text{image=\image_file notsametext  and  \image_file notsametext no?
6946 bpr 248
wims(makelist <img src="\imagedir/x " alt="" /> for x in \image_file)}
3445 bpr 249
 
9925 obado 250
\if{\video_file notsametext  and  \video_file notsametext no}{
3445 bpr 251
  \text{video_file=http notin \video_file ? \imagedir/\video_file}
6946 bpr 252
\text{video=\video_file notsametext ? <a target="wims_external" href="\video_file">[video] </a>}
3445 bpr 253
}
254
 
255
\text{style = <style type="text/css">
3452 obado 256
 .enonce{margin-bottom:0}
257
 .feedback{border:1px dashed grey;padding:0.5em;margin:0;}
3445 bpr 258
 .question {\style_question}
3452 obado 259
 .question ol{padding:0px 0em 0px 1.5em;margin:0}
3445 bpr 260
 .reponse {\style_reponse}
261
 .oefstatement{\style_oef}
9925 obado 262
 
3452 obado 263
 .highlight_false{color:red;font-weight:bold;text-decoration:line-through;}
264
 .highlight{font-weight:bold;}
265
 .true{color:green;}
266
 .incomplete{color:navy;}
3445 bpr 267
 \style_css
268
 </style>
269
 }
270
 
271
\integer{N = min(\cnt_question,\N)}
272
\integer{MAX=min(\N*\MAX,\cnt_question)}
273
\text{battage=\alea issametext yes ? shuffle(\data_q,,) :
274
\data_q}
275
\text{battage=wims(nonempty items \battage)}
9925 obado 276
 
3445 bpr 277
\text{qcm_prompt1=Votre réponse :}
3452 obado 278
\text{qcm_prompt2=La(les) bonne(s) réponse(s) :}
3445 bpr 279
\text{good_answer_text=Bonne réponse}
280
\text{bad_answer_text=Mauvaise réponse}
281
\text{incomplete_answer_text=Réponse incomplète}
282
\text{option=\option noanalyzeprint}
283
\matrix{question=}
284
\matrix{explication=}
285
\matrix{rep=}
286
\text{CNT_choix= }
287
\matrix{CHOIX=}
288
\text{PRELIMINAIRE=}
289
\for{i= 1 to \MAX}{
290
 \text{QUEST=\battage[\i]=1? \data1}
291
 \text{QUEST=\battage[\i]=2? \data2}
292
 \text{QUEST=\battage[\i]=3? \data3}
293
 \text{QUEST=\battage[\i]=4? \data4}
294
 \text{QUEST=\battage[\i]=5? \data5}
295
 \text{QUEST=\battage[\i]=6? \data6}
296
 \text{QUEST=\battage[\i]=7? \data7}
297
 \text{QUEST=\battage[\i]=8? \data8}
298
 \text{QUEST=\battage[\i]=9? \data9}
299
 \text{QUEST=\battage[\i]=10? \data10}
9925 obado 300
 
3445 bpr 301
 \text{preliminaire_test=\QUEST}
302
 \text{preliminaire_test=row(1,\preliminaire_test)}
303
 \text{inst_audio=wims(getopt audio in \preliminaire_test)}
304
 \text{inst_image=wims(getopt image in \preliminaire_test)}
305
 \text{inst_title=wims(getopt title in \preliminaire_test)}
306
 \text{inst_intro=wims(getopt intro in \preliminaire_test)}
307
 \text{test_inst=\inst_audio\inst_image\inst_title\inst_intro  notsametext ? 1 : 0}
308
 \text{rab_inst=}
6946 bpr 309
 \text{rab_inst=\inst_title notsametext ?\rab_inst<div class="wimscenter">\inst_title</div>}
3445 bpr 310
 \text{rab_inst=\inst_intro notsametext ?\rab_inst \inst_intro}
6946 bpr 311
 \text{rab_inst=\inst_image notsametext ? \rab_inst <div class="wimscenter"><img src="\imagedir/\inst_image" alt="" /></div>}
3445 bpr 312
 \if{\inst_audio notsametext }{
9925 obado 313
     \text{rab_inst1= . isin \inst_audio or \packs= ?
3445 bpr 314
       slib(media/audio \imagedir/\inst_audio,\player_option,player=\player):slib(lang/swac \inst_audio,\packs,player=\player,\player_option)}
6946 bpr 315
     \text{rab_inst=\rab_inst <div class="wimscenter">\rab_inst1[1;1]</div>}
3445 bpr 316
   }
317
 \text{preliminaire=\test_inst=1  ? \rab_inst:&nbsp;}
318
 \text{QUEST=\test_inst=1 ? wims(line 2 to -1 of \QUEST)}
6539 bpr 319
 \matrix{QUEST=\accolade=1 ?wims(embraced randitem \QUEST):\QUEST}
3445 bpr 320
  \matrix{question = \question
321
  \QUEST[1;]}
322
  \matrix{PRELIMINAIRE=\PRELIMINAIRE
323
  \preliminaire}
324
  \text{expl=\QUEST[2;]}
325
  \text{ligne=wims(upper \expl)}
326
  \text{ligne=wims(text select ABCDEFGHIJKLMNOPQRSTUVWXYZ in \ligne)}
327
  \if{\ligne issametext and \expl notsametext }{
328
  \matrix{explication = \explication ;
329
  }
330
  \integer{debut = 2}
331
 }
332
 \if{\ligne issametext and \expl issametext }{
333
  \matrix{explication = \explication ;
334
  }
335
  \integer{debut = 3}
336
  }
337
  \if{\ligne notsametext}{
338
     \matrix{explication = \explication
339
  \expl}
340
  \integer{debut = 3}
341
 }
342
  \integer{cnt_choix=rows(\QUEST)-\debut}
343
  \text{CNT_choix=\CNT_choix,\cnt_choix}
344
   \text{Choix=}
345
   \text{mix=shuffle(\cnt_choix)}
346
   \for{ j=\debut+1 to \cnt_choix + \debut+1}{
347
     \text{choix= \QUEST[\j;]}
348
     \text{choix=wims(replace internal , by  &#44; in \choix)}
349
     \matrix{Choix = \Choix, \choix[1;]}
350
   }
351
   \text{Choix=wims(nonempty items \Choix)}
352
   \text{Choix= \Choix[\mix]}
353
   \matrix{CHOIX=\CHOIX
354
     \Choix}
355
   \text{H = wims(nospace \QUEST[\debut;])}
356
   \text{cnt_c=items(\H)}
357
   \text{Rep = }
9925 obado 358
   \for{ k = 1 to \cnt_c}{
3445 bpr 359
     \text{Rep = \Rep, position(\H[\k],\mix)}
360
   }
361
   \text{Rep = wims(sort items wims(nonempty items \Rep))}
362
   \matrix{rep = \rep
363
    \Rep}
364
}
365
 
366
\text{CNT_choix=wims(nonempty items \CNT_choix)}
367
 
368
\text{U = pari(divrem(\MAX,\N)~)}
369
\integer{cnt_step = \U[1] + 1}
370
\matrix{STEPS = }
371
\matrix{CNT = }
372
\text{CONDSTEP=}
373
\for{ u = 1 to \cnt_step -1}{
374
   \matrix{STEPS =\STEPS
375
wims(makelist r x for x = \N*\u -\N+1 to \N*\u)}
376
   \matrix{CNT =\CNT
377
wims(makelist x for x = \N*\u -\N+1 to \N*\u)}
378
   \text{condstep= wims(values \u+1 for x = (\u-1)*\N +1 to \u*\N)}
379
   \text{CONDSTEP= wims(append item \condstep to \CONDSTEP)}
380
}
381
 \matrix{STEPS = \STEPS
382
 wims(makelist r x  for x = \N*\cnt_step-\N+1 to \MAX)
383
}
384
\matrix{CNT = \CNT
385
 wims(makelist x  for x = \N*\cnt_step-\N+1 to \MAX)
386
}
387
\text{CONDSTEP=\CONDSTEP, wims(values \cnt_step+1  for x = \N*\cnt_step-\N+1 to \MAX)}
388
 
389
\text{nstep=\STEPS[1;]}
390
\text{TEST=}
391
text{testexp=wims(rows2lines \explication)}
392
text{testexp=wims(lines2items \testexp)}
393
text{testexp=wims(items2words \testexp)}
394
text{testexp=wims(nospace \testexp)}
395
\nextstep{\nstep}
396
\text{REP=}
397
\text{etape=wims(values x * \N for x = 1 to \cnt_step+1)}
398
\text{CONDITION = wims(makelist x for x = 1 to 2*\MAX)}
399
\text{CONDITION =wims(items2words \CONDITION)}
400
\conditions{\CONDITION}
401
\integer{cnt_juste=0}
402
\real{v = 10}
403
\statement{\nopaste
404
\style\instruction
405
\if{\reading notsametext }{\special{help reading,[à lire]}}
406
\if{\image notsametext }{\special{help image,[à regarder]}}
407
\audio\video
408
 \for{h=1 to \etape[\step]}{
409
   \if{(\h <= \etape[\step] - \N or r \h isitemof \nstep) and \question[\h;] notsametext }{
6946 bpr 410
     <div class="enonce">
3445 bpr 411
     \if{\cnt_step > 1  and \MAX > 1}{\h : } \PRELIMINAIRE[\h;]
6946 bpr 412
     \question[\h;]</div>
3445 bpr 413
   }
414
   \if{\h <= \etape[\step] - \N and \question[\h;] notsametext}{
415
    <div class="reponse">
416
      \qcm_prompt1
417
       \for{ a in \REP[\h;]}{
418
         \if{ \a  isitemof \CHOIX[\h;\rep[\h;]]}{
419
           \if{\TEST[\h;2]>0 and \TEST[\h;3]=0}{
3452 obado 420
           <span class="highlight incomplete">\a</span>}
421
           {<span class="highlight true">\a</span>}
3445 bpr 422
           }
423
         {
3452 obado 424
         <span class="highlight_false">\a</span>} - }
3445 bpr 425
         \if{\TEST[\h;2]>0 and \TEST[\h;3]=0}{
3452 obado 426
                   <span class="incomplete">\incomplete_answer_text
427
          </span>}
6132 bpr 428
         \if{\TEST[\h;3]>0}{<span style="color:red">\bad_answer_text</span>}
3452 obado 429
         \if{\TEST[\h;3]=0 and \TEST[\h;2]=0}{<span class="true">\good_answer_text</span>}
9980 obado 430
         \if{\answer_given issametext oui}{
9925 obado 431
          <br/> \qcm_prompt2
4576 obado 432
          <ul class="highlight true">
433
             \for{s=1 to \CNT_choix[\h]}{
9925 obado 434
               \if{\s isitemof \rep[\h;]}{ <li>\CHOIX[\h;\s]</li>}
4576 obado 435
            }
436
          </ul>
437
         }
9925 obado 438
      \if{\explication[\h;] notsametext }{<div class="feedback">\explication[\h;]</div>}
3445 bpr 439
     </div>
440
   }
441
   { \if{ r \h isitemof \nstep}{
442
      <div class="question">
9925 obado 443
        <ol>
444
          \for{s=1 to \CNT_choix[\h]}{ <li>\embed{reply \h , \s}</li> }
445
        </ol>
3445 bpr 446
      </div>
447
      }
448
   }
449
     </ol>
450
  }
451
 }
452
\answer{}{\REP1;\CHOIX[1;]}{type=\format}{option=\option}
453
\answer{}{\REP2;\CHOIX[2;]}{type=\format}{option=\option}
454
\answer{}{\REP3;\CHOIX[3;]}{type=\format}{option=\option}
455
\answer{}{\REP4;\CHOIX[4;]}{type=\format}{option=\option}
456
\answer{}{\REP5;\CHOIX[5;]}{type=\format}{option=\option}
457
\answer{}{\REP6;\CHOIX[6;]}{type=\format}{option=\option}
458
\answer{}{\REP7;\CHOIX[7;]}{type=\format}{option=\option}
459
\answer{}{\REP8;\CHOIX[8;]}{type=\format}{option=\option}
460
\answer{}{\REP9;\CHOIX[9;]}{type=\format}{option=\option}
461
\answer{}{\REP10;\CHOIX[10;]}{type=\format}{option=\option}
462
 
463
\matrix{REP = \REP1
464
\REP2
465
\REP3
466
\REP4
467
\REP5
468
\REP6
469
\REP7
470
\REP8
471
\REP9
472
\REP10}
473
\if{\format=radio}{
474
 \text{REP=wims(replace internal , by  &#44; in \REP)}
475
}
476
\matrix{explication2 = \explication2}
477
 
478
\for{u = 1 to \N}{
479
   \text{H = \CNT[\step-1;\u]}
480
   \text{test1 = wims(listuniq \REP[\H;],\CHOIX[\H;\rep[\H;]])}
481
   \integer{test1 = items(\test1)-items(\CHOIX[\H;\rep[\H;]])}
482
   \text{test2 = wims(listcomplement \REP[\H;] in \CHOIX[\H;\rep[\H;]])}
483
   \text{test3 = wims(listcomplement \CHOIX[\H;\rep[\H;]] in \REP[\H;])}
484
  %%% \integer{test4=items(\REP[\H;]) - items(\CHOIX[\H;])}
9925 obado 485
   \text{test_cnt=\test1, items(\test2),items(\test3)}
3445 bpr 486
   \integer{cnt_juste= \test_cnt[1]+\test_cnt[2]+\test_cnt[3] =0 ? \cnt_juste + 1}
487
   \matrix{TEST=\TEST
488
   \test_cnt}
489
}
490
 
491
test1 = 0 rep < juste
492
test2  nombre de réponses dites justes et en fait fausses
493
test3  nombre de réponses dites fausses et en fait justes
494
 
495
totalement justes : test1=0, test2=0 test3=0
9925 obado 496
partiellement justes :
3445 bpr 497
 
498
\real{v=\cnt_juste/\CNT[\step-1;\N]}
499
 
500
\text{nstep = \v >= \percent ? \STEPS[\step;]:}
501
 
502
\condition{Question 1 : \REP1}{\TEST[1;3]=0}{option=hide}
503
\condition{Question 1 : \REP1}{\TEST[1;1]=0 and \TEST[1;2]=0 and \TEST[1;3]=0}{option=hide}
504
\condition{Question 2 : \REP2}{\TEST[2;3]=0 and \step >=\CONDSTEP[2]}{option=hide}
505
\condition{Question 2 : \REP2}{\TEST[2;1]=0 and \TEST[2;2]=0 and \TEST[2;3]=0 and \step >=\CONDSTEP[2]}{option=hide}
506
\condition{Question 3 : \REP3}{\TEST[3;3]=0 and \step >=\CONDSTEP[3]}{option=hide}
507
\condition{Question 3 : \REP3}{\TEST[3;1]=0 and \TEST[3;2]=0 and \TEST[3;3]=0 and \step >=\CONDSTEP[3]}{option=hide}
508
\condition{Question 4 : \REP4}{\TEST[4;3]=0 and \step >=\CONDSTEP[4]}{option=hide}
509
\condition{Question 4 : \REP4}{\TEST[4;1]=0 and \TEST[4;2]=0 and \TEST[4;3]=0 and \step >=\CONDSTEP[4]}{option=hide}
510
\condition{Question 5 : \REP5}{\TEST[5;3]=0 and \step >=\CONDSTEP[5]}{option=hide}
511
\condition{Question 5 : \REP5}{\TEST[5;1]=0 and \TEST[5;2]=0 and \TEST[5;3]=0 and \step >=\CONDSTEP[5]}{option=hide}
512
\condition{Question 6 : \REP6}{\TEST[6;3]=0 and \step >=\CONDSTEP[6]}{option=hide}
513
\condition{Question 6 : \REP6}{\TEST[6;1]=0 and \TEST[6;2]=0 and \TEST[6;3]=0 and \step >=\CONDSTEP[6]}{option=hide}
514
\condition{Question 7 : \REP7}{\TEST[7;3]=0 and \step >=\CONDSTEP[7]}{option=hide}
515
\condition{Question 7 : \REP7}{\TEST[7;1]=0 and \TEST[7;2]=0 and \TEST[7;3]=0 and \step >=\CONDSTEP[7]}{option=hide}
516
\condition{Question 8 : \REP8}{\TEST[8;3]=0 and \step >=\CONDSTEP[8]}{option=hide}
517
\condition{Question 8 : \REP8}{\TEST[8;1]=0 and \TEST[8;2]=0 and \TEST[8;3]=0 and \step >=\CONDSTEP[8]}{option=hide}
518
\condition{Question 9 : \REP9}{\TEST[9;3]=0 and \step >=\CONDSTEP[9]}{option=hide}
519
\condition{Question 9 : \REP9}{\TEST[9;1]=0 and \TEST[9;2]=0 and \TEST[9;3]=0 and \step >=\CONDSTEP[9]}{option=hide}
520
\condition{Question 10 : \REP10}{\TEST[10;3]=0 and \step >=\CONDSTEP[10]}{option=hide}
521
\condition{Question 10 : \REP10}{\TEST[10;1]=0 and \TEST[10;2]=0 and \TEST[10;3]=0 and \step >=\CONDSTEP[10]}{option=hide}
522
 
523
 
524
 
525
\text{test=wims(rows2lines \explication)}
526
\text{test=wims(lines2items \test)}
527
\text{test=wims(items2words \test)}
528
\text{test=wims(nospace \test)}
9925 obado 529
feedback{1=1}{\explication
3445 bpr 530
   \if{\test notsametext}{
531
     <div class="reponse"><ol>
532
      \for{w = 1 to \MAX}{
533
        \if{\explication[\w;] notsametext }
7097 bpr 534
         {<li style="list-style:decimal;" value="\w">\explication[\w;] </li>}
3445 bpr 535
     }
536
     </ol>
537
    </div>
538
  }
539
}
540
{<ol>
541
  \for{ t = 1 to \N}{
542
    \if{\CNT[\step;\t] != }{
7097 bpr 543
  <li style="list-style:decimal;" value="\CNT[\step;\t]"> <b>\question[\N*(\step-1) + \t;]</b>
3445 bpr 544
  <div class="question"><ol>
545
   \for{s=1 to \CNT_choix[\N*(\step-1) + \t]}{
546
   <li>\embed{\STEPS[\step;\t] , \s }</li>
547
    }
548
   </ol>
549
   </div>
550
   </li>}
551
 }
552
</ol>
6946 bpr 553
}