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