Rev 13716 | Rev 14235 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13716 | Rev 14171 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | <p> |
8 | <p> |
9 | Per construir un exercici amb aquest model, només cal que introduïu els textos. |
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 |
10 | Una senzilla sintaxi us permet incorporar camps de múltiples opcions i |
11 | respostes lliures als textos. |
11 | respostes lliures als textos. |
12 | </p> |
12 | </p> |
- | 13 | <p class="wims_credits"> |
|
13 |
|
14 | Autor del model: Gang Xiao <qualite@wimsedu.info> |
14 | 15 | </p> |
|
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
16 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
16 | 17 | ||
17 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
18 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
18 | (Ce sont les lignes qui commencent par un ':'.) |
19 | (Ce sont les lignes qui commencent par un ':'.) |
19 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
20 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
20 | 21 | ||
21 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
22 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
22 | 23 | ||
23 | :\title{Diversos textos per completar} |
24 | :\title{Diversos textos per completar} |
24 | :\author{XIAO, Gang} |
25 | :\author{XIAO, Gang} |
25 | :\email{qualite@wimsedu.info} |
26 | :\email{qualite@wimsedu.info} |
26 | :\credits{} |
27 | :\credits{} |
- | 28 | :\keywords{} |
|
- | 29 | ||
- | 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: } |
|
27 | 34 | ||
28 | :Dades principals. |
35 | :Dades principals. |
29 | Escriure els textos separats per punt i coma |
36 | Escriure els textos separats per punt i coma |
30 | Els textos no poden contenir |
37 | Els textos no poden contenir |
31 | punt i coma.<p> |
38 | punt i coma.<p> |
32 | Les preguntes que heu de fer s'han de posar entre un parell de |
39 | Les preguntes que heu de fer s'han de posar entre un parell de |
33 | doble-signe d'interrogació "??". |
40 | doble-signe d'interrogació "??". |
34 | </p> |
41 | </p><p> |
35 | La pregunta serà d'opció múltiple del tipus menú si conté diversos objectes separats |
42 | 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 |
43 | 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 |
44 | conté un objecte, és llavors una resposta lliure (resposta a escriure), numèric si es tracta d'un |
38 | número o text en altre cas. |
45 | número o text en altre cas. |
39 | <p> |
46 | </p><p> |
40 | Podeu fer fins a 20 preguntes al text. |
47 | Podeu fer fins a 20 preguntes al text. |
41 | Si hi ha diverses respostes correctes en una resposta lliure, separeu |
48 | 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>. |
49 | totes les respostes correctes (sinònims) amb una línia vertical <span class = "tt wims_code_words"> | </ span>. |
43 | L'anàlisi es realitza a partir de simtext per als experts.</p> |
50 | L'anàlisi es realitza a partir de simtext per als experts.</p> |
44 | - | ||
45 | $embraced_randitem |
51 | $embraced_randitem |
46 | </p> |
- | |
47 | \text{data= |
52 | \text{data= |
48 | Le début officiel de la Seconde Guerre Mondiale est marqué par |
53 | Le début officiel de la Seconde Guerre Mondiale est marqué par |
49 | ??la déclaration de guerre,l'offensive?? de |
54 | ??la déclaration de guerre,l'offensive?? de |
50 | ??la Grande Bretagne et la France,la France,la Grande Bretagne, |
55 | ??la Grande Bretagne et la France,la France,la Grande Bretagne, |
51 | l'Allemagne,l'Union Soviétique?? |
56 | l'Allemagne,l'Union Soviétique?? |
Line 68... | Line 73... | ||
68 | a lancé une attaque surprise contre l'URSS en |
73 | a lancé une attaque surprise contre l'URSS en |
69 | ??décembre,{novembre,octobre},{septembre,août,juillet},{juin,mai,avril},{mars,février,janvier}?? |
74 | ??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??. |
75 | ??1940??, sous le nom {du plan,de l'opération} ??Barbarossa??. |
71 | } |
76 | } |
72 | 77 | ||
73 | :Text que es mostra |
78 | :Text que es mostra després de la pregunta. |
74 | $embraced_randitem |
- | |
75 | \text{pre=Ompliu les caselles:<p> } |
- | |
76 | - | ||
77 |
|
79 | Es permeten etiquetes HTML. Pot estar buit. |
78 | $embraced_randitem |
80 | $embraced_randitem |
79 | \text{post=} |
81 | \text{post=} |
80 | 82 | ||
81 | :S'accepta text aleatori posat entre claus |
83 | :S'accepta text aleatori posat entre claus |
82 | $embraced_randitem |
84 | $embraced_randitem |
Line 96... | Line 98... | ||
96 | \text{options=} |
98 | \text{options=} |
97 | \text{lengths=} |
99 | \text{lengths=} |
98 | 100 | ||
99 | \text{good=} |
101 | \text{good=} |
100 | \text{field=} |
102 | \text{field=} |
- | 103 | \text{latextext= \data[1;]} |
|
- | 104 | \text{latexsol=\data[1;]} |
|
101 | \for{i=1 to \qs}{ |
105 | \for{i=1 to \qs}{ |
102 | \text{f=\data[2*\i;]} |
106 | \text{f=\data[2*\i;]} |
103 | \integer{test=items(\f)} |
107 | \integer{test=items(\f)} |
104 | \if{\test>1}{ |
108 | \if{\test>1}{ |
105 | \text{g=\f[1]} |
109 | \text{g=\f[1]} |
Line 107... | Line 111... | ||
107 | \text{g=positionof(\g,\f)} |
111 | \text{g=positionof(\g,\f)} |
108 | \text{good=\good\g;,} |
112 | \text{good=\good\g;,} |
109 | \text{field=\field\f;} |
113 | \text{field=\field\f;} |
110 | \text{types=\types[]menu,} |
114 | \text{types=\types[]menu,} |
111 | \text{lengths=\lengths,} |
115 | \text{lengths=\lengths,} |
- | 116 | \integer{nbc = items(\f)-1} |
|
- | 117 | \for{ii = 1 to \nbc}{\text{latextext=\latextext \listchoice{\f[\ii]} / }} |
|
- | 118 | \text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]} |
|
- | 119 | \text{latexsol=\latexsol \goodchoice{\field[\i;\g]} \data[2*\i+1;]} |
|
112 | }{ |
120 | }{ |
113 | \text{good=\good\f,} |
121 | \text{good=\good\f,} |
114 | \integer{c=wims(charcnt \f)} |
122 | \integer{c=wims(charcnt \f)} |
115 | \text{field=\field;} |
123 | \text{field=\field;} |
116 | \real{test=\f} |
124 | \real{test=\f} |
117 | \if{\test issametext NaN}{ |
125 | \if{\test issametext NaN}{ |
118 | \text{test=wims(translate internal | to , in \f)} |
126 | \text{test=wims(translate internal | to , in \f)} |
119 | \integer{c=wims(charcnt \test[1])} |
127 | \integer{c=wims(charcnt \test[1])} |
120 | \integer{c=min(50,max(6,\c+6))} |
128 | \integer{c=min(50,max(6,\c+6))} |
121 | \text{lengths=\lengths\c,} |
129 | \text{lengths=\lengths\c,} |
122 | \text{types=\types[]atext,} |
130 | \text{types=\types[]atext,} |
123 | \text{options=| isin \f?\options[]symtext} |
131 | \text{options=| isin \f?\options[]symtext} |
124 | }{ |
132 | }{ |
125 | \integer{c=max(5,\c+2)} |
133 | \integer{c=max(5,\c+2)} |
126 | \text{lengths=\lengths\c,} |
134 | \text{lengths=\lengths\c,} |
127 | \text{f1=wims(nospace \f)} |
135 | \text{f1=wims(nospace \f)} |
128 | \text{test=wims(text select -0123456789 in \f)} |
136 | \text{test=wims(text select -0123456789 in \f)} |
129 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
137 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
- | 138 | } |
|
- | 139 | \real{taille=ceil(\lengths[\i]/3)} |
|
- | 140 | \text{latextext=\latextext \underline{\hspace{\taille cm}} \data[2*\i+1;]} |
|
- | 141 | \text{latexsol=\latexsol \goodchoice{\test[1]} \data[2*\i+1;]} |
|
130 | } |
142 | } |
131 | } |
- | |
132 | \text{options=\options,} |
143 | \text{options=\options,} |
133 | } |
144 | } |
134 | 145 | ||
135 | \text{pre=\accolade=1 ?wims(embraced randitem \pre)} |
146 | \text{pre=\accolade=1 ?wims(embraced randitem \pre)} |
136 | \text{post=\accolade=1 ?wims(embraced randitem \post)} |
147 | \text{post=\accolade=1 ?wims(embraced randitem \post)} |
137 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
148 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
138 | \steps{\qlist} |
149 | \steps{\qlist} |
139 | 150 | ||
140 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
151 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
141 | 152 | ||
142 | ::Vous n'avez pas besoin de modifier ceci en général. |
153 | ::Vous n'avez pas besoin de modifier ceci en général. |
143 | 154 | ||
144 | \statement{<div class="instruction"> |
155 | \statement{<div class="instruction"> |
145 | \pre |
156 | \pre |
146 | </div> |
157 | </div> |
Line 172... | Line 183... | ||
172 | \answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]} |
183 | \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]} |
184 | \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]} |
185 | \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]} |
186 | \answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]} |
176 | 187 | ||
- | 188 | \latex{ |
|
- | 189 | \begin{statement} |
|
- | 190 | \pre \newline |
|
- | 191 | \latextext \newline |
|
- | 192 | \post |
|
- | 193 | \end{statement} |
|
- | 194 | ||
- | 195 | \begin{solution} |
|
- | 196 | \latexsol |
|
- | 197 | \end{solution} |
|
- | 198 | } |