Subversion Repositories wimsdev

Rev

Rev 13488 | Rev 13781 | 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
12172 mquerol 2
textarea="data feedback_general"
13716 obado 3
iEdit="data feedback_general"
12172 mquerol 4
asis="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{}
23 reyssat 27
 
12172 mquerol 28
:Dades principals.
29
Les preguntes que heu de fer s'han de posar entre un parell de
30
doble-signe d'interrogació "??".
23 reyssat 31
<p>
12172 mquerol 32
La pregunta és una opció múltiple del tipus menú si conté diversos objectes separats
33
per comes, la primera és la resposta correcta. Si la pregunta (entre ??) només
34
conté un objecte, és llavors una resposta lliure (resposta que cal escriure), numèric si es tracta d'un 
13488 obado 35
número o text en altre cas.</p>
36
<p>
12172 mquerol 37
Podeu fer fins a 20 preguntes al text.
38
Si hi ha diverses respostes correctes en una resposta lliure, separeu
39
totes les respostes correctes (sinònims) amb una línia vertical <span class = "tt wims_code_words"> </ span>.
13488 obado 40
L'anàlisi es realitza a partir de simtext per als experts.</p>
12172 mquerol 41
<p>$embraced_randitem</p>
42
\text{data=
43
Completa: <br />
23 reyssat 44
Linux a été créé en l'année
45
??1991??
8002 bpr 46
par Linus Torvalds qui était un étudiant
2966 reyssat 47
??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son
23 reyssat 48
apprentissage sur le système
49
??Minix?? sur des machines d'architecture
50
??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version
51
de son système sur un newsgroupe, qui était la version
52
??0.02??.
53
}
12172 mquerol 54
:S'accepta text aleatori posat entre claus
55
$embraced_randitem
56
\text{accolade=item(1,sí,no)}
23 reyssat 57
 
12172 mquerol 58
:Ordre de visualització de les llistes d'opcions
59
Les llistes d'opcions es poden mostrar en ordre aleatori (shuffle) o en ordre alfabètic (alpha).
60
\text{list_order=item(1,alpha,shuffle)}
61
 
62
:Feedback General
63
Aquest text apareixerà després de la resposta de l'alumne, ja sigui correcta o incorrecta.
64
\text{feedback_general=}
65
 
23 reyssat 66
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
67
\precision{10000}
68
\text{data=wims(singlespace \data)}
12172 mquerol 69
\text{data=\accolade issametext sí ? wims(embraced randitem \data)}
23 reyssat 70
\text{data=slib(text/cutchoice2 \data)}
71
\integer{qs=min(20,floor(rows(\data)/2))}
12172 mquerol 72
 
23 reyssat 73
\text{types=}
74
\text{options=}
75
\text{lengths=}
76
\text{good=}
77
\text{field=}
12172 mquerol 78
 
23 reyssat 79
\for{i=1 to \qs}{
80
 \text{f=\data[2*\i;]}
81
 \integer{test=items(\f)}
82
 \if{\test>1}{
83
  \text{g=\f[1]}
12172 mquerol 84
  \if{\list_order issametext alpha}{
85
    \text{f=wims(sort items \f)}
86
  }
87
  {
88
    \text{f=shuffle(\f,,)}
89
  }
23 reyssat 90
  \text{g=positionof(\g,\f)}
91
  \text{good=\good\g;,}
92
  \text{field=\field\f;}
93
  \text{types=\types[]menu,}
94
  \text{lengths=\lengths,}
95
 }{
96
  \text{good=\good\f,}
97
  \integer{c=wims(charcnt \f)}
98
  \text{field=\field;}
99
  \real{test=\f}
100
  \if{\test issametext NaN}{
101
   \text{test=wims(translate internal | to , in \f)}
102
   \integer{c=wims(charcnt \test[1])}
103
   \integer{c=min(50,max(6,\c+6))}
104
   \text{lengths=\lengths\c,}
105
   \text{types=\types[]atext,}
106
   \text{options=| isin \f?\options[]symtext}
107
  }{
108
   \integer{c=max(5,\c+2)}
109
   \text{lengths=\lengths\c,}
110
   \text{f1=wims(nospace \f)}
111
   \text{test=wims(text select -0123456789 in \f)}
112
   \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,}
113
  }
114
 }
115
 \text{options=\options,}
116
}
117
 
118
\text{qlist=wims(makelist reply x for x=1 to \qs)}
119
\steps{\qlist}
120
 
121
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
122
 
123
::Vous n'avez pas besoin de modifier ceci en général.
124
 
125
\statement{
12172 mquerol 126
  \data[1;]
127
  \for{k=1 to \qs}{
128
    \if{\types[\k] notsametext menu}{
129
      \embed{r \k,\lengths[\k]
130
        autocomplete='off'}
131
    }
132
    { \embed{r \k,\lengths[\k]}}
133
    \data[2*\k+1;]
134
  }
23 reyssat 135
}
136
 
137
:%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5
138
 
139
\answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]}
140
\answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]}
141
\answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]}
142
\answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]}
143
\answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]}
144
\answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]}
145
\answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]}
146
\answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]}
147
\answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]}
148
\answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]}
149
\answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]}
150
\answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]}
151
\answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]}
152
\answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]}
153
\answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]}
154
\answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]}
155
\answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]}
156
\answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]}
157
\answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]}
158
\answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]}
159
 
12172 mquerol 160
\feedback{1=1}{\feedback_general}