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