Rev 15179 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=question |
12168 | mquerol | 2 | textarea="instruction data1 data2 data3 data4 data5 data6 data7 data8 data9 data10" |
13716 | obado | 3 | iEdit="instruction" |
12168 | mquerol | 4 | asis="data1 data2 data3 data4 data5 data6 data7 data8 data9 data10" |
13716 | obado | 5 | |
12168 | mquerol | 6 | :Diverses preguntes consecutives, totes del tipus QCM |
3445 | bpr | 7 | |
12168 | mquerol | 8 | <p>Aquest exercici presenta preguntes d'opció múltiple.</p> |
9 | <p>El nombre de preguntes està limitat a 10. Es pot triar el nombre de preguntes |
||
10 | que es presentarà a cada exercici. Aquestes preguntes es realitzaran de forma aleatòria o no.</p> |
||
15179 | lemaire | 11 | <p>Autor del model : <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a></p> |
3445 | bpr | 12 | |
13 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
14 | |||
15 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
16 | (Ce sont les lignes qui commencent par un ':'.) |
||
17 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
18 | |||
19 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
20 | |||
12168 | mquerol | 21 | :\title{Opció múltiple avançada} |
5147 | bpr | 22 | :\author{Bernadette, Perrin-Riou} |
3445 | bpr | 23 | :\email{bpr@math.u-psud.fr} |
12168 | mquerol | 24 | :\credits{Image de Pfly [CC BY-SA 2.5], via Wikimedia Commons} |
13716 | obado | 25 | |
12168 | mquerol | 26 | :Instruccions Globals |
27 | Escriviu aquí una instrucció comuna a totes les preguntes de l'exercici |
||
9980 | obado | 28 | $embraced_randitem |
12168 | mquerol | 29 | \text{instruction=Respondre cada pregunta de la primera sèrie, validar i respondre les preguntes de la segona sèrie.} |
3445 | bpr | 30 | |
12168 | mquerol | 31 | :Ordre aleatori |
32 | Trieu "sí" per activar l'aleatorietat de les preguntes. |
||
33 | Trieu "no" per presentar-les en l'ordre en què es van entrar. |
||
34 | \text{alea=item(1,sí,no)} |
||
3451 | obado | 35 | |
12168 | mquerol | 36 | :Nombre màxim de preguntes per etapa |
37 | WIMS dividirà automàticament el vostre exercici en etapes en funció del nombre total de preguntes establertes i del nombre de preguntes per etapa. |
||
38 | \text{N=3} |
||
3451 | obado | 39 | |
12168 | mquerol | 40 | :Nombre màxim d'etapes |
41 | WIMS dividirà automàticament el vostre exercici en etapes en funció del nombre total de preguntes establertes i del nombre de preguntes per etapa. |
||
3445 | bpr | 42 | \text{MAX=2} |
3451 | obado | 43 | |
12168 | mquerol | 44 | :Text al costat de la resposta donada un cop l'alumne ha respost. |
45 | Aquestes paraules intervenen una vegada que les preguntes han estat respostes. |
||
46 | És recomanable provar l'exercici de demostració amb |
||
47 | respostes correctes i incorrectes per entendre on intervenen aquestes paraules. |
||
48 | \text{qcm_prompt1=La vostra resposta:} |
||
3451 | obado | 49 | |
12168 | mquerol | 50 | :Text per al feedback per a "La resposta correcta" |
3451 | obado | 51 | |
12168 | mquerol | 52 | \text{qcm_prompt2=La(es) resposta(es) correcta(es) era(en):} |
3451 | obado | 53 | |
12168 | mquerol | 54 | :Text per al feedback per a "La resposta correcta" |
3451 | obado | 55 | |
12168 | mquerol | 56 | \text{good_answer_text=Resposta correcta!} |
3451 | obado | 57 | |
12168 | mquerol | 58 | :Text per al feedback per a "Resposta incorrecta" |
3451 | obado | 59 | |
12168 | mquerol | 60 | \text{bad_answer_text=Resposta incorrecta!} |
3451 | obado | 61 | |
12168 | mquerol | 62 | :Text per al feedback per a "Resposta incompleta" |
3451 | obado | 63 | |
12168 | mquerol | 64 | \text{incomplete_answer_text=Resposta incompleta...} |
3451 | obado | 65 | |
12168 | mquerol | 66 | :Estil CSS per a les preguntes |
3451 | obado | 67 | |
12168 | mquerol | 68 | \text{style_question=background-color: #F2F9FC;} |
3451 | obado | 69 | |
12168 | mquerol | 70 | :Estil CSS per a les respostes |
3451 | obado | 71 | |
15044 | lemaire | 72 | \text{style_reponse=color:#555;font-size:90%;} |
3451 | obado | 73 | |
12168 | mquerol | 74 | :Percentatge d'èxit necessari per passar a la següent etapa (si el nombre màxim d'etapes > 1) |
3451 | obado | 75 | |
3445 | bpr | 76 | \text{percent=0} |
3451 | obado | 77 | |
12168 | mquerol | 78 | :S'accepta text aleatori posat entre claus |
6132 | bpr | 79 | $embraced_randitem |
12168 | mquerol | 80 | \text{accolade=item(2, sí, no)} |
6132 | bpr | 81 | |
15044 | lemaire | 82 | :Affichage de l'analyse des réponses |
83 | Dans le cas où l'exercice est utilisé avec le paramétrage |
||
84 | "Ne jamais afficher les bonnes réponses" : |
||
85 | <ul><li>si vous choisissez "si" alors, après chaque question, il sera |
||
86 | indiqué si les choix sélectionnés sont justes ou faux. |
||
87 | </li><li>si vous choisissez "no" alors, après chaque question, les choix |
||
88 | sélectionnés seront affichés sans indication. |
||
89 | </li></ul> |
||
90 | Dans les autres cas, après chaque question, il sera indiqué si les choix |
||
91 | sélectionnés sont justes ou faux et en cas d'erreur, la liste des bons |
||
92 | choix sera affichée. |
||
93 | |||
12168 | mquerol | 94 | \text{answer_given=item(1, sí, no)} |
9980 | obado | 95 | |
12168 | mquerol | 96 | :Pregunta |
97 | <p>Introduïu aquí la pregunta que voleu fer, d'acord amb el següent format:</p> |
||
98 | <ol> |
||
99 | <li>La primera línia conté l'enunciat de la pregunta.</li> |
||
100 | <li> La segona línia representa un feedback, que es mostrarà després de la validació de les respostes |
||
101 | (es pot deixar en blanc).</li> |
||
102 | <li>Introduïu a la tercera línia la llista dels números de les respostes correctes, separats per comes. (Els números representen l'ordre en què s'escriuen les propostes a continuació)</li> |
||
103 | <li>Cada línia següent representa les diferents propostes de resposta.</li></ol> |
||
104 | <div style="border-left:2px solid orange;width:45em;background-color:white;padding:1em .5em;">Exemple: <br/> |
||
105 | <pre>Enunciat de la Pregunta 1 |
||
106 | Explicació (feedback) que s'ha de mostrar en cas de resposta incorrecta a la pregunta |
||
107 | Números que indiquen el lloc de les respostes correctes |
||
108 | Proposta 1 |
||
109 | Proposta 2 |
||
110 | Proposta 3</pre></div> |
||
111 | <p class="oef_indbad"><strong>Atenció :</strong>aquí estan prohibits els punt i coma.</p> |
||
112 | <hr/> |
||
113 | <p><em>Opcional:</em> podeu afegir opcionalment una primera línia que contindrà variables per inserir un títol, una imatge, un so. (nb: ha d'estar en una classe o mòdul per transferir aquests fitxers). En aquest cas, serà la 2a línia (i no la 1a) que representi l'enunciat, la 3a línia el feedback, etc.</p> |
||
114 | Les possibles variables són: |
||
3452 | obado | 115 | <ul> |
12168 | mquerol | 116 | <li><code>Qtitle</code> : mostra un títol al principi de la pregunta. (per exemple, per indicar el tema)</li> |
117 | <li><code>Qimage</code> : si s'especifica un fitxer d'imatge, aquesta es mostrarà al principi de la pregunta (només funciona en un mòdul o classe).</li> |
||
118 | <li><code>Qaudio</code> : si s'indica un fitxer de so, es mostrarà al principi de la pregunta (només funciona en un mòdul o una classe. Bugs coneguts amb Safari).</li> |
||
119 | </ul> |
||
120 | <div style="border-left:2px solid orange;width:45em;background-color:white;padding:1em .5em;">Exemple : <br/> |
||
121 | <pre>Qtitle="Títol de la pregunta 2" Qimage="image.jpg" Qaudio="son.mp3" |
||
122 | Enunciat de la pregunta 2 |
||
123 | Explicació (feedback) que s'ha de mostrar en cas de resposta incorrecta a la pregunta 2 |
||
124 | Número(s) que indiquin el lloc de les respostes correctes |
||
125 | Proposta 1 |
||
126 | Proposta 2 |
||
127 | Proposta 3</pre></div> |
||
128 | \text{data1=asis(En quelle année eut lieu la bataille de Marignan ? |
||
3452 | obado | 129 | Marignan fut la première victoire du jeune roi François Ier, la première année de son règne. |
3445 | bpr | 130 | 1 |
131 | 1515 |
||
132 | 1414 |
||
133 | 1313 |
||
12168 | mquerol | 134 | 1616)} |
3445 | bpr | 135 | |
12168 | mquerol | 136 | :Pregunta 2 |
3451 | obado | 137 | |
12168 | mquerol | 138 | \text{data2=asis(En 2014, quelle est la ville la plus peuplée au monde ? |
139 | C'est Tokyo, la capitale du Japon (37,7 millions d'habitants), loin devant les autres (qui ont entre 20 et 24 millions d'habitants). <p class="right">Source <a href="http://www.populationdata.net/index2.php?option=palmares&rid=4&nom=grandes-villes-du-monde" target="_blank">populationdata.net</a></p> |
||
140 | 7 |
||
141 | Beijing |
||
142 | Karachi |
||
143 | Manille |
||
3451 | obado | 144 | Mexico |
145 | New York |
||
12168 | mquerol | 146 | Shanghaï |
147 | Tokyo)} |
||
3451 | obado | 148 | |
12168 | mquerol | 149 | :Pregunta 3 |
3451 | obado | 150 | |
12168 | mquerol | 151 | \text{data3=asis(Quel est le nom de ce fleuve : <img src="http://upload.wikimedia.org/wikipedia/commons/e/e4/Mekong_River_watershed.png"/> |
3459 | bpr | 152 | Environ 70 millions d'habitants vivent directement dans le bassin versant du Mékong. |
3451 | obado | 153 | 1 |
154 | Le Mékong |
||
155 | Le Yangzi Jiang |
||
156 | La Volga |
||
12168 | mquerol | 157 | Le Danube)} |
3451 | obado | 158 | |
12168 | mquerol | 159 | :Pregunta 4 |
3451 | obado | 160 | |
12168 | mquerol | 161 | \text{data4=asis(Qtitle="En Peinture" |
162 | Parmi ces différents peintres, lesquels font partie du mouvement impressionniste ? |
||
3452 | obado | 163 | Ingres est associé au courant Romantique, et Raphaël à la Renaissance. |
164 | 1,3 |
||
165 | Edgar Degas |
||
166 | Dominique Ingres |
||
167 | Claude Monet |
||
12168 | mquerol | 168 | Raphaël)} |
3451 | obado | 169 | |
12168 | mquerol | 170 | :Pregunta 5 |
3451 | obado | 171 | |
12168 | mquerol | 172 | \text{data5=asis(Qtitle=ANIMAUX |
173 | Quel est le cri du chameau ? |
||
3452 | obado | 174 | Le brairement est le cri de l'âne, le bêlement : celui des moutons et des chèvres. |
3451 | obado | 175 | 1 |
176 | Le blatèrement |
||
177 | Le brairement |
||
12168 | mquerol | 178 | Le bêlement)} |
3451 | obado | 179 | |
12168 | mquerol | 180 | :Pregunta 6 |
3451 | obado | 181 | |
12168 | mquerol | 182 | \text{data6=asis(Qtitle=Chimie |
183 | Quelle est la formule chimique de la testostérone ? |
||
184 | 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 | 185 | 4 |
186 | C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub> |
||
187 | C<sub>3</sub>H<sub>5</sub>N<sub>3</sub>O<sub>9</sub> |
||
188 | C<sub>17</sub>H<sub>19</sub>NO<sub>3</sub> |
||
12168 | mquerol | 189 | C<sub>19</sub>H<sub>28</sub>O<sub>2</sub>)} |
3451 | obado | 190 | |
12168 | mquerol | 191 | :Pregunta 7 |
3451 | obado | 192 | |
12168 | mquerol | 193 | \text{data7=asis(À partir de quel jour le beaujolais nouveau est-il disponible en vente ? |
3459 | bpr | 194 | 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 | 195 | 3 |
196 | le premier jeudi de Novembre |
||
197 | le deuxième jeudi de Novembre |
||
198 | le troisième jeudi de Novembre |
||
12168 | mquerol | 199 | le quatrième jeudi de Novembre)} |
3451 | obado | 200 | |
12168 | mquerol | 201 | :Pregunta 8 |
3451 | obado | 202 | |
12168 | mquerol | 203 | \text{data8=asis(Dans le film <i>"Rain Man"</i>, quel acteur a un frère autiste surdoué ? |
3452 | obado | 204 | <i>Rain Man</i> est un film américain réalisé par Barry Levinson, sorti en 1989 en France. |
3451 | obado | 205 | 2 |
206 | Bruce Willis |
||
207 | Tom Cruise |
||
12168 | mquerol | 208 | Woody Allen)} |
3451 | obado | 209 | |
12168 | mquerol | 210 | :Pregunta 9 |
3451 | obado | 211 | |
12168 | mquerol | 212 | \text{data9=asis(Le ski nautique est une discipline olympique depuis 1976. |
3452 | obado | 213 | 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 | 214 | 2 |
215 | Vrai |
||
12168 | mquerol | 216 | Faux)} |
3451 | obado | 217 | |
12168 | mquerol | 218 | :Pregunta 10 |
3451 | obado | 219 | |
12168 | mquerol | 220 | \text{data10=asis(Qtitle=Musique |
221 | Quel est le premier ballet écrit par Tchaïkovski ? |
||
3452 | obado | 222 | Le Lac des cygnes a été écrit en 1875 et Casse-noisette en 1891. |
3451 | obado | 223 | 1 |
224 | Le Lac des cygnes |
||
12168 | mquerol | 225 | Casse-noisette)} |
3451 | obado | 226 | |
12168 | mquerol | 227 | :Tipus de respostes |
228 | El tipus "checkbox" (botons quadrats) permet diverses respostes per pregunta. <br/> |
||
229 | Mentre que el tipus "radio" (botons rodons) només permet una resposta per pregunta. |
||
230 | \text{format=item(1, checkbox, radio)} |
||
231 | |||
3459 | bpr | 232 | : |
12168 | mquerol | 233 | \language{ca} |
3445 | bpr | 234 | \computeanswer{no} |
235 | \format{html} |
||
236 | |||
12168 | mquerol | 237 | \text{paste=yes} |
3445 | bpr | 238 | |
239 | \text{option=} |
||
240 | |||
9980 | obado | 241 | :%%%%%%%%%%%%%% Rien à modifier jusqu'à l'énoncé %%%%%%%%%%%%%%%% |
15044 | lemaire | 242 | \text{givegood=slib(oef/env givegood)} |
243 | \text{givegood=\givegood issametext ? 1} |
||
244 | \text{answer_given=\givegood>0? yes} |
||
3445 | bpr | 245 | \text{data_q=\data1!= ? 1:} |
246 | \text{data_q=\data2!= ? wims(append item 2 to \data_q)} |
||
247 | \text{data_q=\data3!= ? wims(append item 3 to \data_q)} |
||
248 | \text{data_q=\data4!= ? wims(append item 4 to \data_q)} |
||
249 | \text{data_q=\data5!= ? wims(append item 5 to \data_q)} |
||
250 | \text{data_q=\data6!= ? wims(append item 6 to \data_q)} |
||
251 | \text{data_q=\data7!= ? wims(append item 7 to \data_q)} |
||
252 | \text{data_q=\data8!= ? wims(append item 8 to \data_q)} |
||
253 | \text{data_q=\data9!= ? wims(append item 9 to \data_q)} |
||
3451 | obado | 254 | \text{data_q=\data10!= ? wims(append item 10 to \data_q)} |
3445 | bpr | 255 | |
12168 | mquerol | 256 | \text{instruction=\accolade issametext sí ? wims(embraced randitem \instruction):\instruction} |
3445 | bpr | 257 | |
258 | \integer{cnt_question=items(\data_q)} |
||
259 | |||
260 | \text{nopaste=\paste issametext no ? slib(utilities/nopaste )} |
||
261 | |||
13716 | obado | 262 | \text{style = <style> |
17142 | obado | 263 | .enonce{margin-bottom:0} |
264 | .qcm_prompt2{margin-top:.5em} |
||
265 | img{vertical-align:middle;} |
||
266 | .q_num, .panel .wims_title{ |
||
267 | font-size:120%;font-family:Impact, Charcoal, sans-serif; |
||
268 | color:#717171; |
||
269 | } |
||
270 | .feedback{border:1px dashed grey;padding:.5em;margin-top:.5em;} |
||
271 | .reponse { |
||
272 | margin: 0 1em; |
||
273 | padding: .5em; |
||
274 | border-radius:5px; |
||
275 | \style_reponse |
||
276 | } |
||
277 | .panel{ |
||
12168 | mquerol | 278 | padding:.5em 1em .5em 1em; |
279 | margin:.5em 0; |
||
280 | border:1px solid #d8d8d8; |
||
281 | border-radius:5px; |
||
282 | background-color: #f2f2f2; |
||
17142 | obado | 283 | } |
284 | .panel.callout{ |
||
12168 | mquerol | 285 | border-color:#c5e5f3; |
286 | border-width:2px; |
||
287 | \style_question |
||
17142 | obado | 288 | } |
289 | .callout .q_num, .callout .wims_title{color:black;} |
||
9925 | obado | 290 | |
17142 | obado | 291 | .panel .wims_title, .panel .wimscenter{margin-top:-1.2em;} |
292 | ol li{margin-bottom: .5em;list-style:upper-alpha;} |
||
293 | input[type='checkbox'] { font-size:120%; } |
||
294 | .strike{text-decoration:line-through;} |
||
295 | .oef_indpartial{color:navy;} |
||
296 | </style> |
||
12168 | mquerol | 297 | } |
3445 | bpr | 298 | |
299 | \integer{N = min(\cnt_question,\N)} |
||
300 | \integer{MAX=min(\N*\MAX,\cnt_question)} |
||
12168 | mquerol | 301 | \text{battage=\alea issametext sí ? shuffle(\data_q,,) :\data_q} |
3445 | bpr | 302 | \text{battage=wims(nonempty items \battage)} |
9925 | obado | 303 | |
3445 | bpr | 304 | \text{option=\option noanalyzeprint} |
305 | \matrix{question=} |
||
12168 | mquerol | 306 | \matrix{explication=xxx} |
3445 | bpr | 307 | \matrix{rep=} |
308 | \text{CNT_choix= } |
||
309 | \matrix{CHOIX=} |
||
310 | \text{PRELIMINAIRE=} |
||
12168 | mquerol | 311 | |
3445 | bpr | 312 | \for{i= 1 to \MAX}{ |
12168 | mquerol | 313 | \matrix{QUEST=\battage[\i]=1? \data1} |
314 | \matrix{QUEST=\battage[\i]=2? \data2} |
||
315 | \matrix{QUEST=\battage[\i]=3? \data3} |
||
316 | \matrix{QUEST=\battage[\i]=4? \data4} |
||
317 | \matrix{QUEST=\battage[\i]=5? \data5} |
||
318 | \matrix{QUEST=\battage[\i]=6? \data6} |
||
319 | \matrix{QUEST=\battage[\i]=7? \data7} |
||
320 | \matrix{QUEST=\battage[\i]=8? \data8} |
||
321 | \matrix{QUEST=\battage[\i]=9? \data9} |
||
322 | \matrix{QUEST=\battage[\i]=10? \data10} |
||
9925 | obado | 323 | |
3445 | bpr | 324 | \text{preliminaire_test=\QUEST} |
325 | \text{preliminaire_test=row(1,\preliminaire_test)} |
||
12168 | mquerol | 326 | \text{inst_audio=wims(getopt Qaudio in \preliminaire_test)} |
327 | \text{inst_image=wims(getopt Qimage in \preliminaire_test)} |
||
328 | \text{inst_title=wims(getopt Qtitle in \preliminaire_test)} |
||
329 | |||
3445 | bpr | 330 | \text{rab_inst=} |
12168 | mquerol | 331 | \text{rab_inst=\inst_title notsametext ?\rab_inst <h2 class="wims_title">\inst_title</h2>} |
332 | \text{rab_inst=\inst_image notsametext ?\rab_inst <div class="wimscenter"><img src="\imagedir/\inst_image" alt="" /></div>} |
||
17142 | obado | 333 | \if{\inst_audio notsametext }{ |
334 | \text{rab_inst1= . isin \inst_audio ? |
||
335 | <audio controls> |
||
12168 | mquerol | 336 | <source src="\imagedir/\inst_audio" type="audio/mpeg"> |
337 | Désolé, votre navigateur est incompatible avec la lecture de fichiers audio. |
||
17142 | obado | 338 | </audio>} |
339 | \text{rab_inst=\rab_inst <div class="wimscenter audio">\rab_inst1[1;1]</div>} |
||
340 | } |
||
12168 | mquerol | 341 | |
342 | \integer{test_inst=\inst_audio\inst_image\inst_title notsametext ? 1 : 0} |
||
343 | \text{preliminaire=\test_inst=1 ? \rab_inst: } |
||
344 | \matrix{QUEST=\test_inst=1 ? \QUEST[2..-1;]} |
||
15044 | lemaire | 345 | \matrix{QUEST=\accolade issametext si ?wims(embraced randitem \QUEST):\QUEST} |
12168 | mquerol | 346 | \matrix{question = \question |
347 | \QUEST[1;]} |
||
348 | \matrix{PRELIMINAIRE=\PRELIMINAIRE |
||
349 | \preliminaire} |
||
350 | |||
351 | \text{expl=\QUEST[2;]} |
||
352 | \text{ligne=wims(upper \expl)} |
||
353 | \text{ligne=wims(text select ABCDEFGHIJKLMNOPQRSTUVWXYZ in \ligne)} |
||
17142 | obado | 354 | \if{\ligne issametext and \expl notsametext }{ |
355 | \matrix{explication = \explication;} |
||
356 | \integer{debut = 2} |
||
3445 | bpr | 357 | } |
17142 | obado | 358 | \if{\ligne issametext and \expl issametext }{ |
359 | \matrix{explication = \explication;} |
||
360 | \integer{debut = 3} |
||
361 | } |
||
3445 | bpr | 362 | \if{\ligne notsametext}{ |
17142 | obado | 363 | \matrix{explication = \explication;\expl} |
364 | \integer{debut = 3} |
||
365 | } |
||
3445 | bpr | 366 | \integer{cnt_choix=rows(\QUEST)-\debut} |
367 | \text{CNT_choix=\CNT_choix,\cnt_choix} |
||
17142 | obado | 368 | \text{Choix=} |
369 | \text{mix=shuffle(\cnt_choix)} |
||
370 | \for{j=\debut+1 to \cnt_choix + \debut+1}{ |
||
371 | \text{choix= \QUEST[\j;]} |
||
372 | \text{choix=wims(replace internal , by , in \choix)} |
||
373 | \matrix{Choix = \Choix, \choix[1;]} |
||
374 | } |
||
375 | \text{Choix=wims(nonempty items \Choix)} |
||
376 | \text{Choix= \Choix[\mix]} |
||
377 | \matrix{CHOIX=\CHOIX |
||
3445 | bpr | 378 | \Choix} |
17142 | obado | 379 | \text{H = wims(nospace \QUEST[\debut;])} |
380 | \text{cnt_c=items(\H)} |
||
381 | \text{Rep = } |
||
382 | \for{ k = 1 to \cnt_c}{ |
||
383 | \text{Rep = \Rep, position(\H[\k],\mix)} |
||
384 | } |
||
385 | \text{Rep = wims(sort items wims(nonempty items \Rep))} |
||
386 | \matrix{rep = \rep |
||
3445 | bpr | 387 | \Rep} |
388 | } |
||
389 | |||
390 | \text{CNT_choix=wims(nonempty items \CNT_choix)} |
||
391 | |||
392 | \text{U = pari(divrem(\MAX,\N)~)} |
||
393 | \integer{cnt_step = \U[1] + 1} |
||
394 | \matrix{STEPS = } |
||
395 | \matrix{CNT = } |
||
396 | \text{CONDSTEP=} |
||
397 | \for{ u = 1 to \cnt_step -1}{ |
||
17142 | obado | 398 | \matrix{STEPS =\STEPS |
3445 | bpr | 399 | wims(makelist r x for x = \N*\u -\N+1 to \N*\u)} |
17142 | obado | 400 | \matrix{CNT =\CNT |
3445 | bpr | 401 | wims(makelist x for x = \N*\u -\N+1 to \N*\u)} |
17142 | obado | 402 | \text{condstep= wims(values \u+1 for x = (\u-1)*\N +1 to \u*\N)} |
403 | \text{CONDSTEP= wims(append item \condstep to \CONDSTEP)} |
||
3445 | bpr | 404 | } |
17142 | obado | 405 | \matrix{STEPS = \STEPS |
12168 | mquerol | 406 | wims(makelist r x for x = \N*\cnt_step-\N+1 to \MAX) |
3445 | bpr | 407 | } |
408 | \matrix{CNT = \CNT |
||
12168 | mquerol | 409 | wims(makelist x for x = \N*\cnt_step-\N+1 to \MAX) |
3445 | bpr | 410 | } |
12168 | mquerol | 411 | \text{CONDSTEP=\CONDSTEP, wims(values \cnt_step+1 for x = \N*\cnt_step-\N+1 to \MAX)} |
3445 | bpr | 412 | |
413 | \text{nstep=\STEPS[1;]} |
||
414 | \text{TEST=} |
||
12168 | mquerol | 415 | \text{explication=\explication[2..-1;]} |
416 | |||
3445 | bpr | 417 | text{testexp=wims(rows2lines \explication)} |
418 | text{testexp=wims(lines2items \testexp)} |
||
419 | text{testexp=wims(items2words \testexp)} |
||
420 | text{testexp=wims(nospace \testexp)} |
||
421 | \nextstep{\nstep} |
||
422 | \text{REP=} |
||
423 | \text{etape=wims(values x * \N for x = 1 to \cnt_step+1)} |
||
424 | \text{CONDITION = wims(makelist x for x = 1 to 2*\MAX)} |
||
425 | \text{CONDITION =wims(items2words \CONDITION)} |
||
426 | \conditions{\CONDITION} |
||
427 | \integer{cnt_juste=0} |
||
428 | \real{v = 10} |
||
15044 | lemaire | 429 | \integer{questioncnt=items(\question[;1])} |
430 | \text{latexsrc=} |
||
431 | \text{latexsol=} |
||
432 | \for{hh=1 to \questioncnt}{ |
||
433 | \text{prel=\PRELIMINAIRE[\hh;]!= and \PRELIMINAIRE[\hh;] notsametext ? \PRELIMINAIRE[\hh;] |
||
434 | \newline:} |
||
435 | \text{latexsrc=\latexsrc \item \prel \question[\hh;] |
||
436 | \begin{\format}} |
||
437 | \for{ss=1 to \CNT_choix[\hh]}{\text{latexsrc=\latexsrc\item \CHOIX[\hh;\ss]}} |
||
438 | \text{listsol=\CHOIX[\hh;\rep[\hh;]]} |
||
439 | \text{latexsol=\latexsol \item \listsol} |
||
440 | \text{latexsrc=\latexsrc |
||
441 | \end{\format}} |
||
442 | } |
||
12168 | mquerol | 443 | |
3445 | bpr | 444 | \statement{\nopaste |
12168 | mquerol | 445 | \style |
15044 | lemaire | 446 | <div class="instruction">\instruction</div> |
12168 | mquerol | 447 | |
448 | \for{h=1 to \etape[\step]}{ |
||
449 | |||
15044 | lemaire | 450 | \if{\question[\h;] notsametext }{ |
451 | \if{\h <= \etape[\step] - \N} |
||
17142 | obado | 452 | {<fieldset class="panel">} |
453 | {\if{r \h isitemof \nstep}{<fieldset class="panel callout">}} |
||
15044 | lemaire | 454 | } |
12168 | mquerol | 455 | |
3445 | bpr | 456 | \if{(\h <= \etape[\step] - \N or r \h isitemof \nstep) and \question[\h;] notsametext }{ |
6946 | bpr | 457 | <div class="enonce"> |
15044 | lemaire | 458 | \if{\cnt_step > 1 and \MAX > 1}{<span class="q_num">\h. </span>} |
459 | \if{\PRELIMINAIRE[\h;] notsametext and \PRELIMINAIRE[\h;] notsametext } |
||
460 | {<div class="preliminaire">\PRELIMINAIRE[\h;]</div>} |
||
461 | <span class="question">\question[\h;]</span> |
||
12168 | mquerol | 462 | </div> |
3445 | bpr | 463 | } |
12168 | mquerol | 464 | |
3445 | bpr | 465 | \if{\h <= \etape[\step] - \N and \question[\h;] notsametext}{ |
466 | <div class="reponse"> |
||
12168 | mquerol | 467 | <span class="qcm_prompt1">\qcm_prompt1</span> |
3445 | bpr | 468 | \for{ a in \REP[\h;]}{ |
15044 | lemaire | 469 | \if{\answer_given=si}{ |
470 | \if{ \a isitemof \CHOIX[\h;\rep[\h;]]}{ |
||
471 | \if{\TEST[\h;2]>0 and \TEST[\h;3]=0}{ |
||
472 | <span class="oef_indpartial">\a</span>} |
||
473 | {<span class="oef_indgood">\a</span>} |
||
474 | }{ |
||
475 | <span class="oef_indbad strike">\a</span>} - } |
||
476 | {<span class="oef_indneutral">\a</span> -} |
||
3445 | bpr | 477 | } |
15044 | lemaire | 478 | \if{\answer_given=si}{ |
479 | \if{\TEST[\h;2]>0 and \TEST[\h;3]=0} |
||
480 | {\incomplete_answer_text |
||
481 | \if{\givegood>0}{<br /> <span class="prompt">\qcm_prompt2</span> |
||
482 | <span class="oef_indgood">\CHOIX[\h;\rep[\h;]]</span>} |
||
483 | } |
||
484 | \if{\TEST[\h;3]>0} |
||
485 | {\bad_answer_text |
||
486 | \if{\givegood>0}{ |
||
487 | <br /> <span class="prompt">\qcm_prompt2</span> |
||
488 | <span class="oef_indgood">\CHOIX[\h;\rep[\h;]]</span>} |
||
12168 | mquerol | 489 | } |
15044 | lemaire | 490 | \if{\TEST[\h;3]=0 and \TEST[\h;2]=0} |
491 | {\good_answer_text} |
||
492 | } |
||
493 | \if{\givegood>0}{ |
||
494 | \if{\explication[\h;] notsametext }{<div class="feedback">\explication[\h;]</div>} |
||
495 | } |
||
3445 | bpr | 496 | </div> |
15044 | lemaire | 497 | }{ |
498 | \if{ r \h isitemof \nstep}{ |
||
3445 | bpr | 499 | <div class="question"> |
9925 | obado | 500 | <ol> |
501 | \for{s=1 to \CNT_choix[\h]}{ <li>\embed{reply \h , \s}</li> } |
||
502 | </ol> |
||
3445 | bpr | 503 | </div> |
504 | } |
||
505 | } |
||
15044 | lemaire | 506 | \if{\question[\h;] notsametext |
17142 | obado | 507 | and (\h <= \etape[\step] - \N or r \h isitemof \nstep)}{</fieldset>} |
3445 | bpr | 508 | } |
509 | } |
||
510 | \answer{}{\REP1;\CHOIX[1;]}{type=\format}{option=\option} |
||
511 | \answer{}{\REP2;\CHOIX[2;]}{type=\format}{option=\option} |
||
512 | \answer{}{\REP3;\CHOIX[3;]}{type=\format}{option=\option} |
||
513 | \answer{}{\REP4;\CHOIX[4;]}{type=\format}{option=\option} |
||
514 | \answer{}{\REP5;\CHOIX[5;]}{type=\format}{option=\option} |
||
515 | \answer{}{\REP6;\CHOIX[6;]}{type=\format}{option=\option} |
||
516 | \answer{}{\REP7;\CHOIX[7;]}{type=\format}{option=\option} |
||
517 | \answer{}{\REP8;\CHOIX[8;]}{type=\format}{option=\option} |
||
518 | \answer{}{\REP9;\CHOIX[9;]}{type=\format}{option=\option} |
||
519 | \answer{}{\REP10;\CHOIX[10;]}{type=\format}{option=\option} |
||
520 | |||
521 | \matrix{REP = \REP1 |
||
522 | \REP2 |
||
523 | \REP3 |
||
524 | \REP4 |
||
525 | \REP5 |
||
526 | \REP6 |
||
527 | \REP7 |
||
528 | \REP8 |
||
529 | \REP9 |
||
530 | \REP10} |
||
531 | \if{\format=radio}{ |
||
15044 | lemaire | 532 | \text{REP=wims(replace internal , by , in \REP)} |
3445 | bpr | 533 | } |
534 | \matrix{explication2 = \explication2} |
||
535 | |||
536 | \for{u = 1 to \N}{ |
||
537 | \text{H = \CNT[\step-1;\u]} |
||
538 | \text{test1 = wims(listuniq \REP[\H;],\CHOIX[\H;\rep[\H;]])} |
||
539 | \integer{test1 = items(\test1)-items(\CHOIX[\H;\rep[\H;]])} |
||
540 | \text{test2 = wims(listcomplement \REP[\H;] in \CHOIX[\H;\rep[\H;]])} |
||
541 | \text{test3 = wims(listcomplement \CHOIX[\H;\rep[\H;]] in \REP[\H;])} |
||
542 | %%% \integer{test4=items(\REP[\H;]) - items(\CHOIX[\H;])} |
||
9925 | obado | 543 | \text{test_cnt=\test1, items(\test2),items(\test3)} |
3445 | bpr | 544 | \integer{cnt_juste= \test_cnt[1]+\test_cnt[2]+\test_cnt[3] =0 ? \cnt_juste + 1} |
545 | \matrix{TEST=\TEST |
||
546 | \test_cnt} |
||
547 | } |
||
548 | |||
549 | test1 = 0 rep < juste |
||
12168 | mquerol | 550 | test2 nombre de réponses dites justes et en fait fausses |
551 | test3 nombre de réponses dites fausses et en fait justes |
||
3445 | bpr | 552 | |
553 | totalement justes : test1=0, test2=0 test3=0 |
||
9925 | obado | 554 | partiellement justes : |
3445 | bpr | 555 | |
556 | \real{v=\cnt_juste/\CNT[\step-1;\N]} |
||
557 | |||
558 | \text{nstep = \v >= \percent ? \STEPS[\step;]:} |
||
559 | |||
560 | \condition{Question 1 : \REP1}{\TEST[1;3]=0}{option=hide} |
||
561 | \condition{Question 1 : \REP1}{\TEST[1;1]=0 and \TEST[1;2]=0 and \TEST[1;3]=0}{option=hide} |
||
562 | \condition{Question 2 : \REP2}{\TEST[2;3]=0 and \step >=\CONDSTEP[2]}{option=hide} |
||
563 | \condition{Question 2 : \REP2}{\TEST[2;1]=0 and \TEST[2;2]=0 and \TEST[2;3]=0 and \step >=\CONDSTEP[2]}{option=hide} |
||
564 | \condition{Question 3 : \REP3}{\TEST[3;3]=0 and \step >=\CONDSTEP[3]}{option=hide} |
||
565 | \condition{Question 3 : \REP3}{\TEST[3;1]=0 and \TEST[3;2]=0 and \TEST[3;3]=0 and \step >=\CONDSTEP[3]}{option=hide} |
||
566 | \condition{Question 4 : \REP4}{\TEST[4;3]=0 and \step >=\CONDSTEP[4]}{option=hide} |
||
567 | \condition{Question 4 : \REP4}{\TEST[4;1]=0 and \TEST[4;2]=0 and \TEST[4;3]=0 and \step >=\CONDSTEP[4]}{option=hide} |
||
568 | \condition{Question 5 : \REP5}{\TEST[5;3]=0 and \step >=\CONDSTEP[5]}{option=hide} |
||
569 | \condition{Question 5 : \REP5}{\TEST[5;1]=0 and \TEST[5;2]=0 and \TEST[5;3]=0 and \step >=\CONDSTEP[5]}{option=hide} |
||
570 | \condition{Question 6 : \REP6}{\TEST[6;3]=0 and \step >=\CONDSTEP[6]}{option=hide} |
||
571 | \condition{Question 6 : \REP6}{\TEST[6;1]=0 and \TEST[6;2]=0 and \TEST[6;3]=0 and \step >=\CONDSTEP[6]}{option=hide} |
||
572 | \condition{Question 7 : \REP7}{\TEST[7;3]=0 and \step >=\CONDSTEP[7]}{option=hide} |
||
573 | \condition{Question 7 : \REP7}{\TEST[7;1]=0 and \TEST[7;2]=0 and \TEST[7;3]=0 and \step >=\CONDSTEP[7]}{option=hide} |
||
574 | \condition{Question 8 : \REP8}{\TEST[8;3]=0 and \step >=\CONDSTEP[8]}{option=hide} |
||
575 | \condition{Question 8 : \REP8}{\TEST[8;1]=0 and \TEST[8;2]=0 and \TEST[8;3]=0 and \step >=\CONDSTEP[8]}{option=hide} |
||
576 | \condition{Question 9 : \REP9}{\TEST[9;3]=0 and \step >=\CONDSTEP[9]}{option=hide} |
||
577 | \condition{Question 9 : \REP9}{\TEST[9;1]=0 and \TEST[9;2]=0 and \TEST[9;3]=0 and \step >=\CONDSTEP[9]}{option=hide} |
||
578 | \condition{Question 10 : \REP10}{\TEST[10;3]=0 and \step >=\CONDSTEP[10]}{option=hide} |
||
579 | \condition{Question 10 : \REP10}{\TEST[10;1]=0 and \TEST[10;2]=0 and \TEST[10;3]=0 and \step >=\CONDSTEP[10]}{option=hide} |
||
580 | |||
581 | |||
582 | \text{test=wims(rows2lines \explication)} |
||
583 | \text{test=wims(lines2items \test)} |
||
584 | \text{test=wims(items2words \test)} |
||
585 | \text{test=wims(nospace \test)} |
||
9925 | obado | 586 | feedback{1=1}{\explication |
3445 | bpr | 587 | \if{\test notsametext}{ |
588 | <div class="reponse"><ol> |
||
589 | \for{w = 1 to \MAX}{ |
||
590 | \if{\explication[\w;] notsametext } |
||
7097 | bpr | 591 | {<li style="list-style:decimal;" value="\w">\explication[\w;] </li>} |
3445 | bpr | 592 | } |
593 | </ol> |
||
594 | </div> |
||
595 | } |
||
596 | } |
||
597 | {<ol> |
||
598 | \for{ t = 1 to \N}{ |
||
599 | \if{\CNT[\step;\t] != }{ |
||
7097 | bpr | 600 | <li style="list-style:decimal;" value="\CNT[\step;\t]"> <b>\question[\N*(\step-1) + \t;]</b> |
3445 | bpr | 601 | <div class="question"><ol> |
602 | \for{s=1 to \CNT_choix[\N*(\step-1) + \t]}{ |
||
603 | <li>\embed{\STEPS[\step;\t] , \s }</li> |
||
604 | } |
||
605 | </ol> |
||
606 | </div> |
||
607 | </li>} |
||
608 | } |
||
609 | </ol> |
||
13382 | bpr | 610 | } |
15044 | lemaire | 611 | |
612 | \latex{ |
||
613 | \begin{statement} |
||
614 | \instruction |
||
615 | \begin{enumerate} |
||
616 | \latexsrc |
||
617 | \end{enumerate} |
||
618 | \end{statement} |
||
619 | \begin{solution}\ |
||
620 | \begin{enumerate} |
||
621 | \latexsol |
||
622 | \end{enumerate} |
||
623 | \end{solution} |
||
624 | } |