Rev 13488 | Rev 14171 | 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 |
13716 | obado | 2 | textarea="data pre post" |
3 | iEdit="pre post" |
||
23 | reyssat | 4 | |
12172 | mquerol | 5 | :Triar resposta en un menú desplegable o escriure-la en un quadre. Es poden proposar diversos textos. |
23 | reyssat | 6 | |
12172 | mquerol | 7 | Aquest exercici presenta textos on s'insereixen els camps de resposta. |
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 us permet incorporar camps de múltiples opcions i |
||
11 | respostes lliures als textos. |
||
12 | </p> |
||
13488 | obado | 13 | <p>Autor del model: Gang Xiao <qualite@wimsedu.info></p> |
14 | |||
23 | reyssat | 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{Diversos textos per completar} |
5147 | bpr | 24 | :\author{XIAO, Gang} |
8002 | bpr | 25 | :\email{qualite@wimsedu.info} |
12172 | mquerol | 26 | :\credits{} |
23 | reyssat | 27 | |
12172 | mquerol | 28 | :Dades principals. |
29 | Escriure els textos separats per punt i coma |
||
30 | Els textos no poden contenir |
||
13488 | obado | 31 | punt i coma.<p> |
12172 | mquerol | 32 | Les preguntes que heu de fer s'han de posar entre un parell de |
33 | doble-signe d'interrogació "??". |
||
34 | </p> <p> |
||
35 | La pregunta serà d'opció múltiple del tipus menú si conté diversos objectes separats |
||
36 | per comes, la primera és la resposta correcta. Si la pregunta (entre ??) només |
||
37 | conté un objecte, és llavors una resposta lliure (resposta a escriure), numèric si es tracta d'un |
||
13488 | obado | 38 | número o text en altre cas.</p> |
23 | reyssat | 39 | <p> |
12172 | mquerol | 40 | Podeu fer fins a 20 preguntes al text. |
41 | Si hi ha diverses respostes correctes en una resposta lliure, separeu |
||
42 | totes les respostes correctes (sinònims) amb una línia vertical <span class = "tt wims_code_words"> | </ span>. |
||
13488 | obado | 43 | L'anàlisi es realitza a partir de simtext per als experts.</p> |
12172 | mquerol | 44 | |
23 | reyssat | 45 | $embraced_randitem |
12172 | mquerol | 46 | </p> |
23 | reyssat | 47 | \text{data= |
48 | Le début officiel de la Seconde Guerre Mondiale est marqué par |
||
3426 | bpr | 49 | ??la déclaration de guerre,l'offensive?? de |
23 | reyssat | 50 | ??la Grande Bretagne et la France,la France,la Grande Bretagne, |
51 | l'Allemagne,l'Union Soviétique?? |
||
3426 | bpr | 52 | contre ??l'Allemagne,La Pologne,l'Union Soviétique,la France??.; |
23 | reyssat | 53 | |
54 | La Seconde Guerre Mondiale s'est déroulée entre ??1939?? et |
||
55 | ??1945??.; |
||
56 | |||
57 | ??La Grande Bretagne et la France ont,La France a,La Grande Bretagne a, |
||
58 | Les Etats-Unis ont,L'Union Soviétique a?? déclaré la guerre |
||
3426 | bpr | 59 | contre l'Allemagne en ??1939?? à la suite de l'invasion de |
23 | reyssat | 60 | ??la Pologne?? par cette dernière.; |
61 | |||
62 | Pendant la Seconde Guerre Mondiale, l'Espagne sous |
||
63 | ??Francisco Franco|[F.|Francisco|] Franco?? est un pays |
||
64 | ??neutre,axe,allié,envahi??.; |
||
65 | |||
66 | ??Après avoir battu,Avant d'attaquer?? la France, |
||
3426 | bpr | 67 | {l'Allemagne,Hitler,l'Allemagne Nazie} |
68 | a lancé une attaque surprise contre l'URSS en |
||
23 | reyssat | 69 | ??décembre,{novembre,octobre},{septembre,août,juillet},{juin,mai,avril},{mars,février,janvier}?? |
70 | ??1940??, sous le nom {du plan,de l'opération} ??Barbarossa??. |
||
71 | } |
||
72 | |||
12172 | mquerol | 73 | :Text que es mostra abans de la pregunta. Es permeten etiquetes HTML. Pot estar buit. |
23 | reyssat | 74 | $embraced_randitem |
12172 | mquerol | 75 | \text{pre=Ompliu les caselles:<p> } |
23 | reyssat | 76 | |
12172 | mquerol | 77 | :Text que es mostra després de la pregunta. Es permeten etiquetes HTML. Pot estar buit. |
23 | reyssat | 78 | $embraced_randitem |
79 | \text{post=} |
||
80 | |||
12172 | mquerol | 81 | :S'accepta text aleatori posat entre claus |
82 | $embraced_randitem |
||
83 | \text{accolade=item(1,1 sí, |
||
84 | 2 no)} |
||
85 | |||
23 | reyssat | 86 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
12172 | mquerol | 87 | \text{accolade=wims(word 1 of \accolade)} |
23 | reyssat | 88 | \precision{10000} |
89 | \text{data=wims(singlespace \data)} |
||
90 | \text{data=wims(nonempty rows \data)} |
||
91 | \text{data=randomrow(\data)} |
||
12172 | mquerol | 92 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
23 | reyssat | 93 | \text{data=slib(text/cutchoice2 \data)} |
94 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
95 | \text{types=} |
||
96 | \text{options=} |
||
97 | \text{lengths=} |
||
98 | |||
99 | \text{good=} |
||
100 | \text{field=} |
||
101 | \for{i=1 to \qs}{ |
||
102 | \text{f=\data[2*\i;]} |
||
103 | \integer{test=items(\f)} |
||
104 | \if{\test>1}{ |
||
105 | \text{g=\f[1]} |
||
106 | \text{f=wims(sort items \f)} |
||
107 | \text{g=positionof(\g,\f)} |
||
108 | \text{good=\good\g;,} |
||
109 | \text{field=\field\f;} |
||
110 | \text{types=\types[]menu,} |
||
111 | \text{lengths=\lengths,} |
||
112 | }{ |
||
113 | \text{good=\good\f,} |
||
114 | \integer{c=wims(charcnt \f)} |
||
115 | \text{field=\field;} |
||
116 | \real{test=\f} |
||
117 | \if{\test issametext NaN}{ |
||
118 | \text{test=wims(translate internal | to , in \f)} |
||
119 | \integer{c=wims(charcnt \test[1])} |
||
120 | \integer{c=min(50,max(6,\c+6))} |
||
121 | \text{lengths=\lengths\c,} |
||
122 | \text{types=\types[]atext,} |
||
123 | \text{options=| isin \f?\options[]symtext} |
||
124 | }{ |
||
125 | \integer{c=max(5,\c+2)} |
||
126 | \text{lengths=\lengths\c,} |
||
127 | \text{f1=wims(nospace \f)} |
||
128 | \text{test=wims(text select -0123456789 in \f)} |
||
129 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
||
130 | } |
||
131 | } |
||
132 | \text{options=\options,} |
||
133 | } |
||
134 | |||
12172 | mquerol | 135 | \text{pre=\accolade=1 ?wims(embraced randitem \pre)} |
136 | \text{post=\accolade=1 ?wims(embraced randitem \post)} |
||
23 | reyssat | 137 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
138 | \steps{\qlist} |
||
139 | |||
140 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
141 | |||
142 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
143 | |||
12172 | mquerol | 144 | \statement{<div class="instruction"> |
145 | \pre |
||
146 | </div> |
||
23 | reyssat | 147 | \data[1;] |
148 | \for{k=1 to \qs}{ |
||
149 | \embed{r \k,\lengths[\k]} \data[2*\k+1;] |
||
150 | } |
||
151 | \post |
||
152 | } |
||
153 | |||
154 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
155 | |||
156 | \answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]} |
||
157 | \answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]} |
||
158 | \answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]} |
||
159 | \answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]} |
||
160 | \answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]} |
||
161 | \answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]} |
||
162 | \answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]} |
||
163 | \answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]} |
||
164 | \answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]} |
||
165 | \answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]} |
||
166 | \answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]} |
||
167 | \answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]} |
||
168 | \answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]} |
||
169 | \answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]} |
||
170 | \answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]} |
||
171 | \answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]} |
||
172 | \answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]} |
||
173 | \answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]} |
||
174 | \answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]} |
||
175 | \answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]} |
||
176 |