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