Subversion Repositories wimsdev

Rev

Rev 13715 | Rev 14235 | 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 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">
14
  Autore del modello: Gang Xiao <qualite@wimsedu.info></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
 
5638 czzmrn 72
:%%%%%%%%%%%%%% Nulla da modificare fino all'enunciato %%%%%%%%%%%%%%%%
23 reyssat 73
\precision{10000}
74
\text{data=wims(singlespace \data)}
13504 czzmrn 75
\text{accolade=wims(word 1 of \accolade)}
76
\text{data=\accolade=1 ? wims(embraced randitem \data)}
23 reyssat 77
\text{data=slib(text/cutchoice2 \data)}
78
\integer{qs=min(20,floor(rows(\data)/2))}
13501 czzmrn 79
 
23 reyssat 80
\text{types=}
81
\text{options=}
82
\text{lengths=}
83
\text{good=}
84
\text{field=}
13501 czzmrn 85
 
13556 czzmrn 86
\text{latextext= \data[1;]}
87
\text{latexsol=\data[1;]}
23 reyssat 88
\for{i=1 to \qs}{
89
 \text{f=\data[2*\i;]}
90
 \integer{test=items(\f)}
91
 \if{\test>1}{
92
  \text{g=\f[1]}
10007 obado 93
  \if{\list_order issametext alpha}{
94
    \text{f=wims(sort items \f)}
95
  }
96
  {
97
    \text{f=shuffle(\f,,)}
98
  }
23 reyssat 99
  \text{g=positionof(\g,\f)}
100
  \text{good=\good\g;,}
101
  \text{field=\field\f;}
102
  \text{types=\types[]menu,}
103
  \text{lengths=\lengths,}
13556 czzmrn 104
    \integer{nbc = items(\f)-1}
105
    \for{ii = 1 to \nbc}{
106
      \text{latextext=\latextext \listchoice{\f[\ii]} / }}
107
    \text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]}
108
    \text{latexsol=\latexsol \goodchoice{\field[\i;\g]} \data[2*\i+1;]}
23 reyssat 109
 }{
110
  \text{good=\good\f,}
111
  \integer{c=wims(charcnt \f)}
112
  \text{field=\field;}
113
  \real{test=\f}
114
  \if{\test issametext NaN}{
115
   \text{test=wims(translate internal | to , in \f)}
116
   \integer{c=wims(charcnt \test[1])}
117
   \integer{c=min(50,max(6,\c+6))}
118
   \text{lengths=\lengths\c,}
119
   \text{types=\types[]atext,}
120
   \text{options=| isin \f?\options[]symtext}
121
  }{
122
   \integer{c=max(5,\c+2)}
123
   \text{lengths=\lengths\c,}
124
   \text{f1=wims(nospace \f)}
125
   \text{test=wims(text select -0123456789 in \f)}
126
   \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,}
127
  }
13556 czzmrn 128
    \real{taille=ceil(\lengths[\i]/3)}
129
    \text{latextext=\latextext \underline{\hspace{\taille cm}} \data[2*\i+1;]}
130
    \text{latexsol=\latexsol \goodchoice{\f} \data[2*\i+1;]}
23 reyssat 131
 }
132
 \text{options=\options,}
133
}
134
 
135
\text{qlist=wims(makelist reply x for x=1 to \qs)}
136
\steps{\qlist}
137
 
5638 czzmrn 138
:%%%%%%%%%%%%% Enunciato (in html). %%%%%%%%%%%%%%%%%%%%
23 reyssat 139
 
5638 czzmrn 140
::In questa parte non dovrebbe esserci nulla da modificare.
23 reyssat 141
 
13781 bpr 142
\statement{<div>\explain</div>
143
  \data[1;]
144
  \for{k=1 to \qs}{
13501 czzmrn 145
    \if{\types[\k] notsametext menu}{
13556 czzmrn 146
      \embed{r \k,\lengths[\k]}
147
    }{
148
      \embed{r \k,\lengths[\k]}}
13501 czzmrn 149
    \data[2*\k+1;]
23 reyssat 150
}
151
}
152
 
5638 czzmrn 153
:%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%%
23 reyssat 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
 
13501 czzmrn 176
\feedback{1=1}{\feedback_general}
13556 czzmrn 177
 
178
\latex{
179
\begin{statement}
180
\latextext
181
\end{statement}
182
\begin{solution}
183
\latexsol
184
\end{solution}
185
}