Rev 14235 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=gapfill first |
13781 | bpr | 2 | textarea="explain data feedback_general" |
3 | iEdit="explain feedback_general" |
||
4 | asis="explain feedback_general" |
||
23 | reyssat | 5 | |
5638 | czzmrn | 6 | :Domande miste incorporate in un testo (cloze). |
23 | reyssat | 7 | |
5638 | czzmrn | 8 | Questo esercizio presenta un testo contenente campi in cui inserire le risposte. |
23 | reyssat | 9 | <p> |
8002 | bpr | 10 | Per costruire un esercizio secondo questo modello è sufficiente inserire i |
5638 | czzmrn | 11 | testi. Una sintassi semplificata permette di incorporare in questo testo campi |
12 | per domande a scelta multipla o domande a risposta libera. |
||
13479 | obado | 13 | </p><p class="wims_credits"> |
15179 | lemaire | 14 | Autore del modello: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p> |
23 | reyssat | 15 | |
5638 | czzmrn | 16 | :%%%%%%%%%%%%%%%%% ATTENZIONE %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 17 | |
5638 | czzmrn | 18 | Se si rimuovono le indicazioni del modulo modelli (le righe che |
19 | cominciano con ':') è necessario rimuovere tutta questa parte |
||
20 | introduttiva del file. Altrimenti Createxo potrebbe non accettare il |
||
21 | codice dell'esercizio. |
||
23 | reyssat | 22 | |
5638 | czzmrn | 23 | :%%%%%%%% Parametri che possono essere ridefiniti %%%%%%%%%%%%%%%%% |
23 | reyssat | 24 | |
5638 | czzmrn | 25 | :\title{Completa il testo (cloze)} |
5147 | bpr | 26 | :\author{XIAO, Gang} |
8002 | bpr | 27 | :\email{qualite@wimsedu.info} |
5724 | bpr | 28 | :\credits{} |
13781 | bpr | 29 | :Consigne pour les apprenants |
23 | reyssat | 30 | |
13781 | bpr | 31 | \text{explain=Compleare.} |
32 | |||
5638 | czzmrn | 33 | :Dati principali. |
34 | Le domande devono essere messe tra due coppie di doppi |
||
35 | punti di domanda "??". |
||
23 | reyssat | 36 | <p> |
5638 | czzmrn | 37 | La domanda è interpretata come una scelta multipla se contiene più |
38 | elementi separati da virgole. Altrimenti è interpretata come una domanda |
||
8002 | bpr | 39 | a risposta libera, e il tipo di risposta richiesto (numerico o testuale) |
13504 | czzmrn | 40 | è determinato dal dato inserito.</p> |
23 | reyssat | 41 | <p> |
13504 | czzmrn | 42 | Si possono inserire fino a 20 domande in una frase. |
5638 | czzmrn | 43 | Se in una domanda a risposta libera sono possibili più risposte, |
8530 | czzmrn | 44 | separare le riposte equivalenti (sinonimi) con una barra verticale <span |
13501 | czzmrn | 45 | class="tt wims_code_words">|</span> (in questo caso la verifica della |
5638 | czzmrn | 46 | correttezza della risposta è effettuato utilizzando symtext). |
13479 | obado | 47 | </p> |
13501 | czzmrn | 48 | <p>$embraced_randitem</p> |
13781 | bpr | 49 | \text{data=Linux a été créé en l'année |
23 | reyssat | 50 | ??1991?? |
8002 | bpr | 51 | par Linus Torvalds qui était un étudiant |
2966 | reyssat | 52 | ??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son |
23 | reyssat | 53 | apprentissage sur le système |
54 | ??Minix?? sur des machines d'architecture |
||
55 | ??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version |
||
56 | de son système sur un newsgroupe, qui était la version |
||
57 | ??0.02??. |
||
58 | } |
||
13501 | czzmrn | 59 | :Scelte casuali di elementi inseriti tra parentesi graffe |
8530 | czzmrn | 60 | $embraced_randitem |
13556 | czzmrn | 61 | \text{accolade=item(1,1 sì, |
13504 | czzmrn | 62 | 2 no)} |
23 | reyssat | 63 | |
13501 | czzmrn | 64 | :Ordinamento dei menu |
65 | I menu possono essere mostrati in ordine casuale (shuffle) oppure in ordine alfabetico (alpha). |
||
10007 | obado | 66 | \text{list_order=item(1,alpha,shuffle)} |
67 | |||
13501 | czzmrn | 68 | :Feedback Generale |
69 | Questo testo viene mostrato dopo la risposta dello studente, sia nel caso tale riposta sia corretta, che nel caso la risposta sia sbagliata. |
||
70 | \text{feedback_general=} |
||
71 | |||
14235 | obado | 72 | :Tipi di analisi della risposta. |
73 | I tipi <span class="tt">case</span> e <span class="tt">nocase</span> sono soprattutto pensati per le |
||
74 | applicazioni linguistiche. Per tutti gli altri utilizzi è preferibile l'opzione |
||
75 | <span class="tt">atext</span>. |
||
76 | \text{type_rep=item(3,case (nessun errore tollerato), |
||
77 | nocase (tollerate differenze maiuscole/minuscole), |
||
78 | atext (ignorate differenze plurale/singolare e articoli))} |
||
79 | |||
5638 | czzmrn | 80 | :%%%%%%%%%%%%%% Nulla da modificare fino all'enunciato %%%%%%%%%%%%%%%% |
23 | reyssat | 81 | \precision{10000} |
82 | \text{data=wims(singlespace \data)} |
||
13504 | czzmrn | 83 | \text{accolade=wims(word 1 of \accolade)} |
84 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
||
23 | reyssat | 85 | \text{data=slib(text/cutchoice2 \data)} |
86 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
13501 | czzmrn | 87 | |
23 | reyssat | 88 | \text{types=} |
89 | \text{options=} |
||
90 | \text{lengths=} |
||
91 | \text{good=} |
||
92 | \text{field=} |
||
13501 | czzmrn | 93 | |
13556 | czzmrn | 94 | \text{latextext= \data[1;]} |
95 | \text{latexsol=\data[1;]} |
||
23 | reyssat | 96 | \for{i=1 to \qs}{ |
97 | \text{f=\data[2*\i;]} |
||
98 | \integer{test=items(\f)} |
||
99 | \if{\test>1}{ |
||
100 | \text{g=\f[1]} |
||
10007 | obado | 101 | \if{\list_order issametext alpha}{ |
102 | \text{f=wims(sort items \f)} |
||
103 | } |
||
104 | { |
||
105 | \text{f=shuffle(\f,,)} |
||
106 | } |
||
23 | reyssat | 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,} |
||
13556 | czzmrn | 112 | \integer{nbc = items(\f)-1} |
113 | \for{ii = 1 to \nbc}{ |
||
114 | \text{latextext=\latextext \listchoice{\f[\ii]} / }} |
||
115 | \text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]} |
||
116 | \text{latexsol=\latexsol \goodchoice{\field[\i;\g]} \data[2*\i+1;]} |
||
23 | reyssat | 117 | }{ |
118 | \text{good=\good\f,} |
||
119 | \integer{c=wims(charcnt \f)} |
||
120 | \text{field=\field;} |
||
121 | \real{test=\f} |
||
122 | \if{\test issametext NaN}{ |
||
123 | \text{test=wims(translate internal | to , in \f)} |
||
124 | \integer{c=wims(charcnt \test[1])} |
||
125 | \integer{c=min(50,max(6,\c+6))} |
||
126 | \text{lengths=\lengths\c,} |
||
14235 | obado | 127 | \text{types=\types[]\type_rep,} |
23 | reyssat | 128 | \text{options=| isin \f?\options[]symtext} |
129 | }{ |
||
130 | \integer{c=max(5,\c+2)} |
||
131 | \text{lengths=\lengths\c,} |
||
132 | \text{f1=wims(nospace \f)} |
||
133 | \text{test=wims(text select -0123456789 in \f)} |
||
134 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
||
135 | } |
||
13556 | czzmrn | 136 | \real{taille=ceil(\lengths[\i]/3)} |
137 | \text{latextext=\latextext \underline{\hspace{\taille cm}} \data[2*\i+1;]} |
||
138 | \text{latexsol=\latexsol \goodchoice{\f} \data[2*\i+1;]} |
||
23 | reyssat | 139 | } |
140 | \text{options=\options,} |
||
141 | } |
||
142 | |||
143 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
||
144 | \steps{\qlist} |
||
145 | |||
5638 | czzmrn | 146 | :%%%%%%%%%%%%% Enunciato (in html). %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 147 | |
5638 | czzmrn | 148 | ::In questa parte non dovrebbe esserci nulla da modificare. |
23 | reyssat | 149 | |
13781 | bpr | 150 | \statement{<div>\explain</div> |
151 | \data[1;] |
||
152 | \for{k=1 to \qs}{ |
||
13501 | czzmrn | 153 | \if{\types[\k] notsametext menu}{ |
13556 | czzmrn | 154 | \embed{r \k,\lengths[\k]} |
155 | }{ |
||
156 | \embed{r \k,\lengths[\k]}} |
||
13501 | czzmrn | 157 | \data[2*\k+1;] |
23 | reyssat | 158 | } |
159 | } |
||
160 | |||
5638 | czzmrn | 161 | :%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%% |
23 | reyssat | 162 | |
163 | \answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]} |
||
164 | \answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]} |
||
165 | \answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]} |
||
166 | \answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]} |
||
167 | \answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]} |
||
168 | \answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]} |
||
169 | \answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]} |
||
170 | \answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]} |
||
171 | \answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]} |
||
172 | \answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]} |
||
173 | \answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]} |
||
174 | \answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]} |
||
175 | \answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]} |
||
176 | \answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]} |
||
177 | \answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]} |
||
178 | \answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]} |
||
179 | \answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]} |
||
180 | \answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]} |
||
181 | \answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]} |
||
182 | \answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]} |
||
183 | |||
13501 | czzmrn | 184 | \feedback{1=1}{\feedback_general} |
13556 | czzmrn | 185 | |
186 | \latex{ |
||
187 | \begin{statement} |
||
188 | \latextext |
||
189 | \end{statement} |
||
190 | \begin{solution} |
||
191 | \latexsol |
||
192 | \end{solution} |
||
193 | } |