Subversion Repositories wimsdev

Rev

Rev 13716 | 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
 
12172 mquerol 6
:Triar resposta d'un menú desplegable o escriure-la en un quadre. Només es pot proposar un text.
23 reyssat 7
 
12172 mquerol 8
Aquest exercici presenta un text on s'insereixen els camps de resposta.
23 reyssat 9
<p>
12172 mquerol 10
Per construir un exercici amb aquest model, només cal que introduïu els textos.
11
Una senzilla sintaxi us permet incorporar camps de múltiples opcions i
13488 obado 12
respostes lliures als textos.</p>
13
<p>Autor del model: Gang Xiao <qualite@wimsedu.info></p>
23 reyssat 14
 
15
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
16
 
2880 bpr 17
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
23 reyssat 18
(Ce sont les lignes qui commencent par un ':'.)
19
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
20
 
21
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
22
 
12172 mquerol 23
:\title{Text que cal completar}
5147 bpr 24
:\author{XIAO, Gang}
8002 bpr 25
:\email{qualite@wimsedu.info}
12172 mquerol 26
:\credits{}
13781 bpr 27
:Consigne pour les apprenants
23 reyssat 28
 
13781 bpr 29
\text{explain=Completa.}
30
 
12172 mquerol 31
:Dades principals.
32
Les preguntes que heu de fer s'han de posar entre un parell de
33
doble-signe d'interrogació "??".
23 reyssat 34
<p>
12172 mquerol 35
La pregunta és una 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
13781 bpr 37
conté un objecte, és llavors una resposta lliure (resposta que cal escriure), numèric si es tracta d'un
13488 obado 38
número o text en altre cas.</p>
39
<p>
12172 mquerol 40
Podeu fer fins a 20 preguntes al text.
41
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>.
13488 obado 43
L'anàlisi es realitza a partir de simtext per als experts.</p>
12172 mquerol 44
<p>$embraced_randitem</p>
45
\text{data=
23 reyssat 46
Linux a été créé en l'année
47
??1991??
8002 bpr 48
par Linus Torvalds qui était un étudiant
2966 reyssat 49
??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son
23 reyssat 50
apprentissage sur le système
51
??Minix?? sur des machines d'architecture
52
??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version
53
de son système sur un newsgroupe, qui était la version
54
??0.02??.
55
}
12172 mquerol 56
:S'accepta text aleatori posat entre claus
57
$embraced_randitem
58
\text{accolade=item(1,sí,no)}
23 reyssat 59
 
12172 mquerol 60
:Ordre de visualització de les llistes d'opcions
61
Les llistes d'opcions es poden mostrar en ordre aleatori (shuffle) o en ordre alfabètic (alpha).
62
\text{list_order=item(1,alpha,shuffle)}
63
 
64
:Feedback General
65
Aquest text apareixerà després de la resposta de l'alumne, ja sigui correcta o incorrecta.
66
\text{feedback_general=}
67
 
23 reyssat 68
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
69
\precision{10000}
70
\text{data=wims(singlespace \data)}
12172 mquerol 71
\text{data=\accolade issametext sí ? wims(embraced randitem \data)}
23 reyssat 72
\text{data=slib(text/cutchoice2 \data)}
73
\integer{qs=min(20,floor(rows(\data)/2))}
12172 mquerol 74
 
23 reyssat 75
\text{types=}
76
\text{options=}
77
\text{lengths=}
78
\text{good=}
79
\text{field=}
12172 mquerol 80
 
23 reyssat 81
\for{i=1 to \qs}{
82
 \text{f=\data[2*\i;]}
83
 \integer{test=items(\f)}
84
 \if{\test>1}{
85
  \text{g=\f[1]}
12172 mquerol 86
  \if{\list_order issametext alpha}{
87
    \text{f=wims(sort items \f)}
88
  }
89
  {
90
    \text{f=shuffle(\f,,)}
91
  }
23 reyssat 92
  \text{g=positionof(\g,\f)}
93
  \text{good=\good\g;,}
94
  \text{field=\field\f;}
95
  \text{types=\types[]menu,}
96
  \text{lengths=\lengths,}
97
 }{
98
  \text{good=\good\f,}
99
  \integer{c=wims(charcnt \f)}
100
  \text{field=\field;}
101
  \real{test=\f}
102
  \if{\test issametext NaN}{
103
   \text{test=wims(translate internal | to , in \f)}
104
   \integer{c=wims(charcnt \test[1])}
105
   \integer{c=min(50,max(6,\c+6))}
106
   \text{lengths=\lengths\c,}
107
   \text{types=\types[]atext,}
108
   \text{options=| isin \f?\options[]symtext}
109
  }{
110
   \integer{c=max(5,\c+2)}
111
   \text{lengths=\lengths\c,}
112
   \text{f1=wims(nospace \f)}
113
   \text{test=wims(text select -0123456789 in \f)}
114
   \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,}
115
  }
116
 }
117
 \text{options=\options,}
118
}
119
 
120
\text{qlist=wims(makelist reply x for x=1 to \qs)}
121
\steps{\qlist}
122
 
123
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
124
 
125
::Vous n'avez pas besoin de modifier ceci en général.
126
 
13781 bpr 127
\statement{<div>\explain</div>
12172 mquerol 128
  \data[1;]
129
  \for{k=1 to \qs}{
130
    \if{\types[\k] notsametext menu}{
13781 bpr 131
      \embed{r \k,\lengths[\k]}
132
    }{
133
      \embed{r \k,\lengths[\k]}}
12172 mquerol 134
    \data[2*\k+1;]
135
  }
23 reyssat 136
}
137
 
138
:%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5
139
 
140
\answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]}
141
\answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]}
142
\answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]}
143
\answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]}
144
\answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]}
145
\answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]}
146
\answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]}
147
\answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]}
148
\answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]}
149
\answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]}
150
\answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]}
151
\answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]}
152
\answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]}
153
\answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]}
154
\answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]}
155
\answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]}
156
\answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]}
157
\answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]}
158
\answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]}
159
\answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]}
160
 
12172 mquerol 161
\feedback{1=1}{\feedback_general}