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> |
||
14171 | mquerol | 13 | <p class="wims_credits"> |
14 | Autor del model: Gang Xiao <qualite@wimsedu.info> |
||
15 | </p> |
||
23 | reyssat | 16 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
17 | |||
2880 | bpr | 18 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 19 | (Ce sont les lignes qui commencent par un ':'.) |
20 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
21 | |||
22 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
23 | |||
12172 | mquerol | 24 | :\title{Diversos textos per completar} |
5147 | bpr | 25 | :\author{XIAO, Gang} |
8002 | bpr | 26 | :\email{qualite@wimsedu.info} |
12172 | mquerol | 27 | :\credits{} |
14171 | mquerol | 28 | :\keywords{} |
23 | reyssat | 29 | |
14171 | mquerol | 30 | :Text que es mostra abans de la pregunta |
31 | Es permeten etiquetes HTML. Pot estar buit. |
||
32 | $embraced_randitem |
||
33 | \text{pre=Completeu els camps buits i seleccioneu la resposta correcta en els altres casos: } |
||
34 | |||
12172 | mquerol | 35 | :Dades principals. |
36 | Escriure els textos separats per punt i coma |
||
37 | Els textos no poden contenir |
||
13488 | obado | 38 | punt i coma.<p> |
12172 | mquerol | 39 | Les preguntes que heu de fer s'han de posar entre un parell de |
40 | doble-signe d'interrogació "??". |
||
14171 | mquerol | 41 | </p><p> |
12172 | mquerol | 42 | La pregunta serà d'opció múltiple del tipus menú si conté diversos objectes separats |
43 | per comes, la primera és la resposta correcta. Si la pregunta (entre ??) només |
||
44 | conté un objecte, és llavors una resposta lliure (resposta a escriure), numèric si es tracta d'un |
||
14171 | mquerol | 45 | número o text en altre cas. |
46 | </p><p> |
||
12172 | mquerol | 47 | Podeu fer fins a 20 preguntes al text. |
48 | Si hi ha diverses respostes correctes en una resposta lliure, separeu |
||
49 | totes les respostes correctes (sinònims) amb una línia vertical <span class = "tt wims_code_words"> | </ span>. |
||
13488 | obado | 50 | L'anàlisi es realitza a partir de simtext per als experts.</p> |
23 | reyssat | 51 | $embraced_randitem |
52 | \text{data= |
||
53 | Le début officiel de la Seconde Guerre Mondiale est marqué par |
||
3426 | bpr | 54 | ??la déclaration de guerre,l'offensive?? de |
23 | reyssat | 55 | ??la Grande Bretagne et la France,la France,la Grande Bretagne, |
56 | l'Allemagne,l'Union Soviétique?? |
||
3426 | bpr | 57 | contre ??l'Allemagne,La Pologne,l'Union Soviétique,la France??.; |
23 | reyssat | 58 | |
59 | La Seconde Guerre Mondiale s'est déroulée entre ??1939?? et |
||
60 | ??1945??.; |
||
61 | |||
62 | ??La Grande Bretagne et la France ont,La France a,La Grande Bretagne a, |
||
63 | Les Etats-Unis ont,L'Union Soviétique a?? déclaré la guerre |
||
3426 | bpr | 64 | contre l'Allemagne en ??1939?? à la suite de l'invasion de |
23 | reyssat | 65 | ??la Pologne?? par cette dernière.; |
66 | |||
67 | Pendant la Seconde Guerre Mondiale, l'Espagne sous |
||
68 | ??Francisco Franco|[F.|Francisco|] Franco?? est un pays |
||
69 | ??neutre,axe,allié,envahi??.; |
||
70 | |||
71 | ??Après avoir battu,Avant d'attaquer?? la France, |
||
3426 | bpr | 72 | {l'Allemagne,Hitler,l'Allemagne Nazie} |
73 | a lancé une attaque surprise contre l'URSS en |
||
23 | reyssat | 74 | ??décembre,{novembre,octobre},{septembre,août,juillet},{juin,mai,avril},{mars,février,janvier}?? |
75 | ??1940??, sous le nom {du plan,de l'opération} ??Barbarossa??. |
||
76 | } |
||
77 | |||
14171 | mquerol | 78 | :Text que es mostra després de la pregunta. |
79 | Es permeten etiquetes HTML. Pot estar buit. |
||
23 | reyssat | 80 | $embraced_randitem |
81 | \text{post=} |
||
82 | |||
14235 | obado | 83 | :S'accepta text aleatori posat entre claus |
12172 | mquerol | 84 | $embraced_randitem |
85 | \text{accolade=item(1,1 sí, |
||
86 | 2 no)} |
||
87 | |||
14235 | obado | 88 | :Tipus d'anàlisi de resposta. |
89 | Els tipus <span class="tt">case</span> i <span class="tt">nocase</span> estan especialment adaptats |
||
90 | per a aplicacions de llengües. En altres casos, es preferible <span class="tt">atext</span>. |
||
91 | \text{type_rep=item(3,case (cap tolerància d'error), |
||
92 | nocase (tolera minúscula/majúscula), |
||
93 | atext (ignora singular/plural i articles))} |
||
94 | |||
23 | reyssat | 95 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
12172 | mquerol | 96 | \text{accolade=wims(word 1 of \accolade)} |
23 | reyssat | 97 | \precision{10000} |
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 | \text{types=} |
||
105 | \text{options=} |
||
106 | \text{lengths=} |
||
107 | |||
108 | \text{good=} |
||
109 | \text{field=} |
||
14171 | mquerol | 110 | \text{latextext= \data[1;]} |
111 | \text{latexsol=\data[1;]} |
||
23 | reyssat | 112 | \for{i=1 to \qs}{ |
113 | \text{f=\data[2*\i;]} |
||
114 | \integer{test=items(\f)} |
||
115 | \if{\test>1}{ |
||
116 | \text{g=\f[1]} |
||
117 | \text{f=wims(sort items \f)} |
||
118 | \text{g=positionof(\g,\f)} |
||
119 | \text{good=\good\g;,} |
||
120 | \text{field=\field\f;} |
||
121 | \text{types=\types[]menu,} |
||
122 | \text{lengths=\lengths,} |
||
14171 | mquerol | 123 | \integer{nbc = items(\f)-1} |
124 | \for{ii = 1 to \nbc}{\text{latextext=\latextext \listchoice{\f[\ii]} / }} |
||
125 | \text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]} |
||
126 | \text{latexsol=\latexsol \goodchoice{\field[\i;\g]} \data[2*\i+1;]} |
||
23 | reyssat | 127 | }{ |
128 | \text{good=\good\f,} |
||
129 | \integer{c=wims(charcnt \f)} |
||
130 | \text{field=\field;} |
||
131 | \real{test=\f} |
||
132 | \if{\test issametext NaN}{ |
||
14171 | mquerol | 133 | \text{test=wims(translate internal | to , in \f)} |
134 | \integer{c=wims(charcnt \test[1])} |
||
135 | \integer{c=min(50,max(6,\c+6))} |
||
136 | \text{lengths=\lengths\c,} |
||
14235 | obado | 137 | \text{types=\types[]\type_rep,} |
14171 | mquerol | 138 | \text{options=| isin \f?\options[]symtext} |
139 | }{ |
||
140 | \integer{c=max(5,\c+2)} |
||
141 | \text{lengths=\lengths\c,} |
||
142 | \text{f1=wims(nospace \f)} |
||
143 | \text{test=wims(text select -0123456789 in \f)} |
||
144 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
||
145 | } |
||
146 | \real{taille=ceil(\lengths[\i]/3)} |
||
147 | \text{latextext=\latextext \underline{\hspace{\taille cm}} \data[2*\i+1;]} |
||
148 | \text{latexsol=\latexsol \goodchoice{\test[1]} \data[2*\i+1;]} |
||
23 | reyssat | 149 | } |
14171 | mquerol | 150 | \text{options=\options,} |
23 | reyssat | 151 | } |
152 | |||
12172 | mquerol | 153 | \text{pre=\accolade=1 ?wims(embraced randitem \pre)} |
154 | \text{post=\accolade=1 ?wims(embraced randitem \post)} |
||
23 | reyssat | 155 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
156 | \steps{\qlist} |
||
157 | |||
158 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
159 | |||
160 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
161 | |||
12172 | mquerol | 162 | \statement{<div class="instruction"> |
163 | \pre |
||
164 | </div> |
||
23 | reyssat | 165 | \data[1;] |
166 | \for{k=1 to \qs}{ |
||
167 | \embed{r \k,\lengths[\k]} \data[2*\k+1;] |
||
168 | } |
||
169 | \post |
||
170 | } |
||
171 | |||
172 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
173 | |||
174 | \answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]} |
||
175 | \answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]} |
||
176 | \answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]} |
||
177 | \answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]} |
||
178 | \answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]} |
||
179 | \answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]} |
||
180 | \answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]} |
||
181 | \answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]} |
||
182 | \answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]} |
||
183 | \answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]} |
||
184 | \answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]} |
||
185 | \answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]} |
||
186 | \answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]} |
||
187 | \answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]} |
||
188 | \answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]} |
||
189 | \answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]} |
||
190 | \answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]} |
||
191 | \answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]} |
||
192 | \answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]} |
||
193 | \answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]} |
||
194 | |||
14171 | mquerol | 195 | \latex{ |
196 | \begin{statement} |
||
197 | \pre \newline |
||
198 | \latextext \newline |
||
199 | \post |
||
200 | \end{statement} |
||
201 | |||
202 | \begin{solution} |
||
203 | \latexsol |
||
204 | \end{solution} |
||
205 | } |