Subversion Repositories wimsdev

Rev

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