Rev 13716 | 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 |
23 | reyssat | 2 | textarea="datatrue datafalse explain" |
13716 | obado | 3 | iEdit="explain" |
13749 | obado | 4 | asis="explain" |
23 | reyssat | 5 | |
12167 | mquerol | 6 | :Triar les frases certes d'una llista proposada. |
7 | Es proposa una llista amb un cert nombre de frases. S'han d'identificar i marcar les que són certes. Les frases certes i les falses es trien a l'atzar de les respectives llistes. El nombre de frases certes a cada presentació no és sempre el mateix. |
||
23 | reyssat | 8 | <p> |
12167 | mquerol | 9 | Com més dades (en aquest cas, frases) hi poseu, més aleatori i repetible serà l'exercici. Però també podeu fer exercicis només amb les frases que necessiteu. Serà en aquest cas un QCM |
10 | amb diverses opcions correctes. |
||
13476 | obado | 11 | <p class="wims_credits"> |
12167 | mquerol | 12 | Autor del model : Gang Xiao <qualite@wimsedu.info> |
23 | reyssat | 13 | |
14 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
15 | |||
2880 | bpr | 16 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 17 | (Ce sont les lignes qui commencent par un ':'.) |
18 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
19 | |||
20 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
21 | |||
12167 | mquerol | 22 | :\title{Cert/fals múltiple} |
5147 | bpr | 23 | :\author{XIAO, Gang} |
8002 | bpr | 24 | :\email{qualite@wimsedu.info} |
6132 | bpr | 25 | :\credits{} |
23 | reyssat | 26 | |
12167 | mquerol | 27 | :Nombre de frases a presentar |
23 | reyssat | 28 | \integer{tot=4} |
29 | |||
12167 | mquerol | 30 | :Mínim de frases certes en cada exercici presentat. Almenys 1 |
23 | reyssat | 31 | \integer{mintrue=1} |
32 | |||
12167 | mquerol | 33 | :Mínim de frases falses en cada exercici presentat. Almenys 1 |
23 | reyssat | 34 | \integer{minfalse=1} |
35 | |||
12167 | mquerol | 36 | :Frases certes. Una per línia, no poseu punt i coma. |
37 | Eviteu frases llargues! |
||
23 | reyssat | 38 | $embraced_randitem |
39 | \matrix{datatrue= |
||
3426 | bpr | 40 | À tension égale, le courant passant par un résistor est inversement proportionnel à sa résistance. |
41 | À courant égal, la tension sur un résistor est proportionnelle à sa résistance. |
||
23 | reyssat | 42 | Le courant passant par un résistor est proportionnel à la tension appliquée. |
43 | La puissance dissipée par un résistor est proportionnelle au carré de la tension appliquée. |
||
44 | La puissance dissipée par un résistor est proportionnelle au carré du courant. |
||
3426 | bpr | 45 | À tension alternative égale, le courant passant par un condensateur est proportionnel à la capacité. |
46 | À courant égal, la tension alternative sur un condensateur est inversement proportionnelle à la capacité. |
||
47 | À tension alternative égale, le courant passant par un solénoïde est inversement proportionnel à l'inductance. |
||
48 | À courant égal, la tension alternative sur un solénoïde est proportionnelle à l'inductance. |
||
23 | reyssat | 49 | Un condensateur idéal ne consomme pas d'énergie. |
50 | Un solénoïde idéal ne consomme pas d'énergie. |
||
51 | } |
||
52 | |||
12167 | mquerol | 53 | :Frases falses. Una per línia, no poseu punt i coma. |
54 | Eviteu frases llargues! |
||
23 | reyssat | 55 | $embraced_randitem |
56 | \matrix{datafalse= |
||
3426 | bpr | 57 | À tension égale, le courant passant par un résistor est proportionnel à sa résistance. |
58 | À courant égal, la tension sur un résistor est inversement proportionnelle à sa résistance. |
||
59 | À courant égal, la tension sur un résistor est indépendante de sa résistance. |
||
60 | À tension égale, le courant passant par un résistor est indépendant de sa résistance. |
||
23 | reyssat | 61 | Le courant passant par une diode est proportionnel à la tension appliquée. |
62 | La puissance dissipée par un résistor est proportionnelle à la tension appliquée. |
||
63 | La puissance dissipée par un résistor est proportionnelle au courant. |
||
3426 | bpr | 64 | À tension alternative égale, le courant passant par un condensateur est inversement proportionnel à la capacité. |
65 | À courant égal, la tension alternative sur un condensateur est proportionnelle à la capacité. |
||
66 | À tension alternative égale, le courant passant par un condensateur est indépendant de la capacité. |
||
67 | À tension continue égale, le courant passant par un condensateur est proportionnel à la capacité. |
||
68 | À courant égal, la tension continue sur un condensateur est inversement proportionnelle à la capacité. |
||
69 | À courant égal, la tension alternative sur un condensateur est indépendante de la capacité. |
||
70 | À tension alternative égale, le courant passant par un solénoïde est proportionnel à l'inductance. |
||
71 | À courant égal, la tension alternative sur un solénoïde est inversement proportionnelle à l'inductance. |
||
23 | reyssat | 72 | La puissance dissipée par un condensateur est proportionnelle {à,au carré de} la tension appliquée. |
73 | La puissance dissipée par un condensateur est proportionnelle {au,au carré du} courant. |
||
74 | La puissance dissipée par un solénoïde idéal est proportionnelle {à,au carré de} la tension appliquée. |
||
75 | La puissance dissipée par un solénoïde idéal est proportionnelle {au,au carré du} courant. |
||
76 | } |
||
77 | |||
12167 | mquerol | 78 | :Opcions |
79 | Afegiu la paraula <span class="tt wims_code_words">split</span> a la definició si voleu donar una nota |
||
80 | parcial per a respostes parcialment correctes. |
||
23 | reyssat | 81 | \text{option=split} |
82 | |||
12167 | mquerol | 83 | :Enunciat |
23 | reyssat | 84 | $embraced_randitem |
13749 | obado | 85 | \text{explain=asis(Quines de les següents afirmacions són certes? Marqueu-les.)} |
23 | reyssat | 86 | |
12167 | mquerol | 87 | :S'accepta text aleatori posat entre claus |
6132 | bpr | 88 | $embraced_randitem |
12167 | mquerol | 89 | \text{accolade=item(1,1 sí, |
90 | 2 no)} |
||
6132 | bpr | 91 | |
12167 | mquerol | 92 | :%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%% |
23 | reyssat | 93 | |
6132 | bpr | 94 | \text{accolade=wims(word 1 of \accolade)} |
23 | reyssat | 95 | \text{datatrue=wims(nonempty rows \datatrue)} |
96 | \text{datafalse=wims(nonempty rows \datafalse)} |
||
97 | \integer{truecnt=rows(\datatrue)} |
||
98 | \integer{falsecnt=rows(\datafalse)} |
||
99 | \integer{tot=\tot > min(\truecnt,\falsecnt)?min(\truecnt,\falsecnt)} |
||
100 | \integer{mintrue=\mintrue<1?1} |
||
101 | \integer{minfalse=\minfalse<1?1} |
||
102 | \integer{mintrue=\mintrue>\tot-1?\tot-1} |
||
103 | \integer{minfalse=\minfalse>\tot-1?\tot-1} |
||
104 | \integer{tot<\mintrue+\minfalse?\mintrue+\minfalse} |
||
105 | \text{tsh=shuffle(\truecnt)} |
||
106 | \text{fsh=shuffle(\falsecnt)} |
||
107 | \text{true=row(\tsh,\datatrue)} |
||
108 | \text{false=row(\fsh,\datafalse)} |
||
109 | \integer{truepick=randint(\mintrue..\tot-\minfalse)} |
||
110 | \text{pick=row(1..\truepick,\true);row(1..\tot-\truepick,\false)} |
||
111 | \text{ind=wims(makelist 1 for x=1 to \truepick),wims(makelist 0 for x=1 to \tot-\truepick)} |
||
112 | |||
113 | \text{sh=shuffle(\tot)} |
||
114 | \text{ind=item(\sh,\ind)} |
||
115 | \text{pick=row(\sh,\pick)} |
||
6132 | bpr | 116 | \text{pick=\accolade=1 ? wims(embraced randitem \pick)} |
23 | reyssat | 117 | \text{ans=positionof(1,\ind)} |
118 | \text{list=wims(values x for x=1 to \tot)} |
||
6132 | bpr | 119 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
23 | reyssat | 120 | |
12167 | mquerol | 121 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 122 | |
12167 | mquerol | 123 | ::You don't need to modify this in general. |
23 | reyssat | 124 | |
12167 | mquerol | 125 | \statement{ |
126 | <div class="instruction"> |
||
127 | \explain |
||
128 | </div> |
||
129 | <ul style="list-style-type:none"> |
||
23 | reyssat | 130 | \for{i=1 to \tot}{ |
12167 | mquerol | 131 | <li> |
132 | \embed{reply 1,\i}. \pick[\i;] |
||
133 | </li> |
||
23 | reyssat | 134 | } |
12167 | mquerol | 135 | </ul> |
23 | reyssat | 136 | } |
137 | |||
12167 | mquerol | 138 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%% |
23 | reyssat | 139 | |
12167 | mquerol | 140 | \answer{The reply}{\ans;\list}{type=checkbox}{option=\option} |