Rev 13716 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=gapfill |
13716 | obado | 2 | textarea="data pre post" |
3 | iEdit="pre post" |
||
23 | reyssat | 4 | |
12172 | mquerol | 5 | :Triar resposta (menú desplegable o etiqueta) en un text proposat a l'atzar. |
23 | reyssat | 6 | |
12172 | mquerol | 7 | Aquest exercici presenta textos on s'insereixen camps de selecció múltiple. |
23 | reyssat | 8 | <p> |
12172 | mquerol | 9 | Per construir un exercici amb aquest model, només cal que introduïu els textos. |
10 | Una senzilla sintaxi permet incorporar els camps triats als textos. |
||
13476 | obado | 11 | <p class="wims_credits"> |
15179 | lemaire | 12 | Autor del model: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a>, modificat per Bernadette Perrin-Riou |
12172 | mquerol | 13 | (afegir l'opció clickfill) |
23 | reyssat | 14 | |
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
16 | |||
2880 | bpr | 17 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 18 | (Ce sont les lignes qui commencent par un ':'.) |
19 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
20 | |||
21 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
22 | |||
12172 | mquerol | 23 | :\title{Menús desplegables o etiquetes en diversos textos} |
5147 | bpr | 24 | :\author{XIAO, Gang} |
8002 | bpr | 25 | :\email{qualite@wimsedu.info} |
12172 | mquerol | 26 | :\credits{} |
23 | reyssat | 27 | |
12172 | mquerol | 28 | :Format de resposta |
29 | Possibilitats: menu, clickfill, dragfill |
||
30 | <ul><li><dl class="tt">clickfill</dl> etiqueta a moure (es pot utilitzar una etiqueta diverses vegades). |
||
31 | </li> |
||
32 | <li><dl class="tt">dragfill</dl> etiqueta a moure (cada etiqueta |
||
33 | només es pot utilitzar una vegada). |
||
34 | </li> |
||
35 | <li><dl class="tt">menu</dl> menú desplegable. |
||
36 | </li></ul> |
||
37 | \text{format=item(1,menu, |
||
38 | clickfill, |
||
39 | dragfill)} |
||
4706 | bpr | 40 | |
12172 | mquerol | 41 | :Mida de les caixes (clickfill, dragfill) |
4706 | bpr | 42 | \text{len=150 x 25} |
13716 | obado | 43 | |
44 | :Text que es mostra abans de la pregunta |
||
45 | Es permeten etiquetes HTML. Pot estar buit. |
||
46 | $embraced_randitem |
||
47 | \text{pre=<p>Ompliu les caselles:</p>} |
||
48 | |||
49 | :Dades principals |
||
12172 | mquerol | 50 | Escriure els textos separats per punt i coma. |
51 | Els textos no poden contenir |
||
52 | punt i coma. <p> |
||
53 | La pregunta que s'ha de fer s'ha de posar entre un parell de |
||
54 | doble-signe d'interrogació "??", la primera és la resposta correcta. |
||
55 | Podeu fer fins a 20 preguntes en el mateix text. |
||
4248 | bpr | 56 | |
23 | reyssat | 57 | $embraced_randitem |
58 | \text{data= |
||
59 | Le dernier empereur ??Pu Yi, Pu Jie, Ci Xi, Yuan Shikai?? |
||
60 | de la dernière dynastie chinoise ??Qing,Ming,Song,Tang??, fut destitué par |
||
61 | ??une révolte militaire,les envahisseurs japonais,l'armée Rouge soviétique, |
||
62 | les communistes?? en |
||
63 | ??1911,1917,1937,1945,1949??. Il |
||
64 | ??est décédé par maladie,a été exécuté,s'est suicidé?? en |
||
65 | ??1967,1911,1918,1945,1950,1960?? à Beijing.; |
||
66 | |||
67 | Après une bataille ??féroce,facile??, les japonais ont envahi Shanghai en |
||
68 | ??1937,1932,1938,1940,1941,1942?? qui comptait une concession |
||
69 | occidentale "commune" à l'époque. Ils ont |
||
70 | ??partiellement,totalement,nullement?? respecté la neutralité de la concession |
||
71 | pendant l'occupation jusqu'en ??1941,1939,1942,1945??. L'abolition de la |
||
72 | concession fut prononcée pour la première fois par le gouvernement |
||
73 | ??fantoche,nationaliste,communiste?? |
||
74 | en ??1943,1945,1949,1960??.; |
||
75 | |||
76 | La première guerre de l'opium a été déclenchée par |
||
3885 | reyssat | 77 | ??la Grande Bretagne,la France, les Etats-Unis, plusieurs pays occidentaux?? |
78 | contre ??la Chine, l'Inde?? en ??1839,{1739,1741,1756},1841,1856??, dans le but |
||
79 | ??de protéger,d'interdire?? le trafic de drogue (opium). Cette guerre s'est |
||
8002 | bpr | 80 | soldée par la capitulation du gouvernement ??chinois,indien?? |
23 | reyssat | 81 | ??3,2,4,5,8?? ans après, avec la signature du traité de |
82 | ??Nankin,Pekin,Canton,Maguan,Taiping,Tianjin??.; |
||
83 | } |
||
84 | |||
12172 | mquerol | 85 | :Text que es mostra després de la pregunta. Es permeten etiquetes HTML. Pot estar buit. |
23 | reyssat | 86 | $embraced_randitem |
87 | \text{post=} |
||
88 | |||
12172 | mquerol | 89 | :S'accepta text aleatori posat entre claus |
90 | $embraced_randitem |
||
91 | \text{accolade=item(1,1 sí, |
||
92 | 2 no)} |
||
93 | |||
23 | reyssat | 94 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
13550 | bpr | 95 | \text{accolade=wims(word 1 of \accolade)} |
12172 | mquerol | 96 | \text{format=wims(word 1 of \format)} |
13564 | bpr | 97 | \text{len=\format issametext menu ? } |
23 | reyssat | 98 | \text{data=wims(singlespace \data)} |
99 | \text{data=wims(nonempty rows \data)} |
||
100 | \text{data=randomrow(\data)} |
||
12172 | mquerol | 101 | \text{data=\accolade=1 ?wims(embraced randitem \data)} |
23 | reyssat | 102 | \text{data=slib(text/cutchoice2 \data)} |
103 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
104 | |||
105 | \text{good=} |
||
106 | \text{field=} |
||
107 | \for{i=1 to \qs}{ |
||
108 | \text{f=\data[2*\i;]} |
||
109 | \text{g=\f[1]} |
||
110 | \text{f=wims(sort items \f)} |
||
4706 | bpr | 111 | \text{g1=positionof(\g,\f)} |
12172 | mquerol | 112 | \text{good=\format iswordof clickfill dragfill ?\good\g,:\good\g1,} |
23 | reyssat | 113 | \text{field=\field\f;} |
114 | } |
||
115 | |||
12172 | mquerol | 116 | \text{pre=\accolade=1 ?wims(embraced randitem \pre)} |
117 | \text{post=\accolade=1 ?wims(embraced randitem \post)} |
||
23 | reyssat | 118 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
119 | \steps{\qlist} |
||
120 | |||
121 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
122 | |||
123 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
124 | |||
12172 | mquerol | 125 | \statement{<div class="instruction"> |
126 | \pre |
||
127 | </div> |
||
23 | reyssat | 128 | \data[1;] |
129 | \for{k=1 to \qs}{ |
||
130 | \embed{r \k,\len} \data[2*\k+1;] |
||
131 | } |
||
132 | \post |
||
133 | } |
||
134 | |||
135 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
136 | |||
4706 | bpr | 137 | \answer{Champ 1}{\good[1];\field[1;]}{type=\format} |
138 | \answer{Champ 2}{\good[2];\field[2;]}{type=\format} |
||
139 | \answer{Champ 3}{\good[3];\field[3;]}{type=\format} |
||
140 | \answer{Champ 4}{\good[4];\field[4;]}{type=\format} |
||
141 | \answer{Champ 5}{\good[5];\field[5;]}{type=\format} |
||
142 | \answer{Champ 6}{\good[6];\field[6;]}{type=\format} |
||
143 | \answer{Champ 7}{\good[7];\field[7;]}{type=\format} |
||
144 | \answer{Champ 8}{\good[8];\field[8;]}{type=\format} |
||
145 | \answer{Champ 9}{\good[9];\field[9;]}{type=\format} |
||
146 | \answer{Champ 10}{\good[10];\field[10;]}{type=\format} |
||
147 | \answer{Champ 11}{\good[11];\field[11;]}{type=\format} |
||
148 | \answer{Champ 12}{\good[12];\field[12;]}{type=\format} |
||
149 | \answer{Champ 13}{\good[13];\field[13;]}{type=\format} |
||
150 | \answer{Champ 14}{\good[14];\field[14;]}{type=\format} |
||
151 | \answer{Champ 15}{\good[15];\field[15;]}{type=\format} |
||
152 | \answer{Champ 16}{\good[16];\field[16;]}{type=\format} |
||
153 | \answer{Champ 17}{\good[17];\field[17;]}{type=\format} |
||
154 | \answer{Champ 18}{\good[18];\field[18;]}{type=\format} |
||
155 | \answer{Champ 19}{\good[19];\field[19;]}{type=\format} |
||
156 | \answer{Champ 20}{\good[20];\field[20;]}{type=\format} |
||
23 | reyssat | 157 |