Rev 13715 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=gapfill |
13715 | obado | 2 | textarea="data pre post" |
3 | iEdit="pre post" |
||
23 | reyssat | 4 | |
5 | :Domande a scelta multipla inserite in un testo scelto in modo casuale. |
||
6 | |||
7 | L'esercizio presenta un testo in cui alcune parole vanno scelte tra quelle |
||
8 | di un elenco proposto. |
||
9 | <p> |
||
10 | Per costruire un esercizio di questo tipo è sufficiente inserire il testo. |
||
8002 | bpr | 11 | Semplici comandi permettono quindi di inserire gli elenchi per le |
23 | reyssat | 12 | scelte multiple. |
13479 | obado | 13 | </p><p class="wims_credits"> |
15179 | lemaire | 14 | Autore del modello: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a> con modifiche di Bernadette Perrin-Riou |
13479 | obado | 15 | (aggiunta dell'opzione clickfill)</p> |
23 | reyssat | 16 | |
17 | :%%%%%%%%%%%%%%%%% ATTENZIONE %%%%%%%%%%%%%%%%%%%% |
||
18 | |||
19 | Se si rimuovono le indicazioni del modulo modelli (le righe che |
||
20 | cominciano con ':') è necessario rimuovere tutta questa parte |
||
21 | introduttiva del file. Altrimenti Createxo potrebbe non accettare il |
||
22 | codice dell'esercizio. |
||
23 | |||
24 | :%%%%%%%% Parametri che possono essere ridefiniti %%%%%%%%%%%%%%%%% |
||
25 | |||
26 | :\title{Scelte in un testo} |
||
5147 | bpr | 27 | :\author{XIAO, Gang} |
8002 | bpr | 28 | :\email{qualite@wimsedu.info} |
5724 | bpr | 29 | :\credits{} |
23 | reyssat | 30 | |
4789 | czzmrn | 31 | :Formato delle risposte |
8530 | czzmrn | 32 | Possibilità: menu, clickfill, dragfill |
13501 | czzmrn | 33 | <ul><li><dl class="tt">clickfill</dl> etichette da spostare (una etichetta può essere utilizzata più volte). |
34 | </li> |
||
35 | <li><dl class="tt">dragfill</dl> etichette da spostare (ogni etichetta può essere utilizzata una volta sola). |
||
36 | </li> |
||
37 | <li><dl class="tt">menu</dl> menu a tendina. |
||
38 | </li></ul> |
||
8530 | czzmrn | 39 | \text{format=item(1,menu, |
40 | clickfill, |
||
41 | dragfill)} |
||
23 | reyssat | 42 | |
8530 | czzmrn | 43 | :Dimesione dei riquadri (clickfill, dragfill) |
13556 | czzmrn | 44 | \text{len=150 x 35} |
13479 | obado | 45 | |
4789 | czzmrn | 46 | :Dati principali. |
5638 | czzmrn | 47 | Occorre definire una domanda per riga, separando le righe con un punto |
48 | e virgola (e quindi i testi non devono contenere ";".) <p> |
||
4789 | czzmrn | 49 | Le domande da porre devono essere scritti tra due coppie |
50 | di punti di domanda "??". |
||
5779 | czzmrn | 51 | Un singolo testo riga può contenere fino a 20 domande. |
4789 | czzmrn | 52 | |
23 | reyssat | 53 | $embraced_randitem |
54 | \text{data= |
||
55 | The last emperor ??Pu Yi, Pu Jie, Ci Xi, Yuan Shikai?? |
||
56 | of the last Chinese dynasty ??Qing,Ming,Song,Tang??, was destituted by |
||
57 | ??a military uprising, the Japanses envaders,The soviet Red Army, |
||
58 | the communists?? in |
||
59 | ??1911,1917,1937,1945,1949??. He |
||
60 | ??is dead by disease,has been executed,committed suicide?? in |
||
61 | ??1967,1911,1918,1945,1950,1960?? in Beijing.; |
||
62 | |||
63 | After ??a ferocious,an easy?? battle, the Japanese has envaded Shanghai in |
||
64 | ??1937,1932,1938,1940,1941,1942?? which had an western "common" |
||
65 | concession in that time. They have |
||
66 | ??partially, totally, not at all?? respected the neutrality off the concession |
||
67 | during their occupation up to ??1941,1939,1942,1945??. The abolition of the |
||
68 | concession was first pronounced by the |
||
5779 | czzmrn | 69 | ??puppet,nationalist,communist?? government |
23 | reyssat | 70 | in ??1943,1945,1949,1960??.; |
71 | |||
72 | The first opium war was launched by |
||
73 | ??the Great Britain,France, the United States, several western countries?? |
||
74 | against ??China, India?? in ??1839,{1739,1741,1756},1841,1856??, to the aim of |
||
75 | ??protecting,prohibiting?? the drug (opium) traffic. This was has ended by |
||
5779 | czzmrn | 76 | the capitulation of the ??Chinese,Indian?? government |
23 | reyssat | 77 | ??3,2,4,5,8?? years later, with the signature of the treaty of |
78 | ??Nankin,Pekin,Canton,Maguan,Taiping,Tianjin??.; |
||
79 | } |
||
80 | |||
81 | :Testo che precede la domanda. Sono permessi comandi html, può essere vuoto. |
||
82 | $embraced_randitem |
||
7169 | bpr | 83 | \text{pre=Seleziona:} |
23 | reyssat | 84 | |
85 | :Testo che segue la domanda. Sono permessi comandi html, può essere vuoto. |
||
86 | $embraced_randitem |
||
87 | \text{post=} |
||
88 | |||
13501 | czzmrn | 89 | :Scelte casuali di elementi inseriti tra parentesi graffe |
8530 | czzmrn | 90 | $embraced_randitem |
13556 | czzmrn | 91 | \text{accolade=item(1,1 sì, |
8530 | czzmrn | 92 | 2 no)} |
93 | |||
23 | reyssat | 94 | :%%%%%%%%%%% Parte che precede l'enunciato: da non modificare %%%%%%%%%%%%% |
13550 | bpr | 95 | \text{accolade=wims(word 1 of \accolade)} |
8530 | czzmrn | 96 | \text{format=wims(word 1 of \format)} |
13564 | bpr | 97 | \text{len=\format issametext menu ? } |
23 | reyssat | 98 | \text{data=wims(singlespace \data)} |
99 | \text{data=wims(nonempty rows \data)} |
||
100 | \text{data=randomrow(\data)} |
||
8530 | czzmrn | 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 | |||
105 | \text{good=} |
||
106 | \text{field=} |
||
13556 | czzmrn | 107 | \text{latextext= \data[1;]} |
108 | \text{latexsol=\data[1;]} |
||
23 | reyssat | 109 | \for{i=1 to \qs}{ |
110 | \text{f=\data[2*\i;]} |
||
111 | \text{g=\f[1]} |
||
112 | \text{f=wims(sort items \f)} |
||
4789 | czzmrn | 113 | \text{g1=positionof(\g,\f)} |
8530 | czzmrn | 114 | \text{good=\format iswordof clickfill dragfill ?\good\g,:\good\g1,} |
23 | reyssat | 115 | \text{field=\field\f;} |
13556 | czzmrn | 116 | \integer{nbc = items(\f)-1} |
117 | \for{ii = 1 to \nbc}{ |
||
118 | \text{latextext=\latextext \listchoice{\f[\ii]} / }} |
||
119 | \text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]} |
||
120 | \text{latexsol=\latexsol \goodchoice{\field[\i;\g1]} \data[2*\i+1;]} |
||
23 | reyssat | 121 | } |
122 | |||
8530 | czzmrn | 123 | \text{pre=\accolade=1 ?wims(embraced randitem \pre)} |
124 | \text{post=\accolade=1 ?wims(embraced randitem \post)} |
||
23 | reyssat | 125 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
126 | \steps{\qlist} |
||
127 | |||
128 | :%%%%%%%%%%%%% Enunciato (in html). %%%%%%%%%%%%%%%%%%%% |
||
129 | |||
130 | ::In questa parte non dovrebbe esserci nulla da modificare. |
||
131 | |||
13501 | czzmrn | 132 | \statement{ |
133 | <div class="instruction">\pre</div> |
||
13564 | bpr | 134 | \data[1;] |
135 | \for{k=1 to \qs}{ |
||
136 | \embed{r \k,\len} \data[2*\k+1;] |
||
137 | } |
||
138 | \post |
||
23 | reyssat | 139 | } |
140 | |||
141 | :%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%%5 |
||
142 | |||
4789 | czzmrn | 143 | \answer{Champ 1}{\good[1];\field[1;]}{type=\format} |
144 | \answer{Champ 2}{\good[2];\field[2;]}{type=\format} |
||
145 | \answer{Champ 3}{\good[3];\field[3;]}{type=\format} |
||
146 | \answer{Champ 4}{\good[4];\field[4;]}{type=\format} |
||
147 | \answer{Champ 5}{\good[5];\field[5;]}{type=\format} |
||
148 | \answer{Champ 6}{\good[6];\field[6;]}{type=\format} |
||
149 | \answer{Champ 7}{\good[7];\field[7;]}{type=\format} |
||
150 | \answer{Champ 8}{\good[8];\field[8;]}{type=\format} |
||
151 | \answer{Champ 9}{\good[9];\field[9;]}{type=\format} |
||
152 | \answer{Champ 10}{\good[10];\field[10;]}{type=\format} |
||
153 | \answer{Champ 11}{\good[11];\field[11;]}{type=\format} |
||
154 | \answer{Champ 12}{\good[12];\field[12;]}{type=\format} |
||
155 | \answer{Champ 13}{\good[13];\field[13;]}{type=\format} |
||
156 | \answer{Champ 14}{\good[14];\field[14;]}{type=\format} |
||
157 | \answer{Champ 15}{\good[15];\field[15;]}{type=\format} |
||
158 | \answer{Champ 16}{\good[16];\field[16;]}{type=\format} |
||
159 | \answer{Champ 17}{\good[17];\field[17;]}{type=\format} |
||
160 | \answer{Champ 18}{\good[18];\field[18;]}{type=\format} |
||
161 | \answer{Champ 19}{\good[19];\field[19;]}{type=\format} |
||
162 | \answer{Champ 20}{\good[20];\field[20;]}{type=\format} |
||
23 | reyssat | 163 | |
13556 | czzmrn | 164 | \latex{ |
165 | \begin{statement} |
||
166 | \pre \ \newline |
||
167 | \latextext \newline |
||
168 | \post |
||
169 | \end{statement} |
||
170 | \begin{solution} |
||
171 | \latexsol |
||
172 | \end{solution} |
||
173 | } |