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 | |
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> |
15179 | lemaire | 13 | <p>Autor del model: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p> |
23 | reyssat | 14 | |
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
16 | |||
14235 | obado | 17 | Elimineu la capçalera de dalt si destruiu les etiquetes de la plantilla. |
18 | (Aquestes són les línies que comencen amb un ':'.) |
||
19 | En cas contrari, l’exercici no podrà tornar a Createxo. |
||
23 | reyssat | 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 | |
14235 | obado | 28 | :Instrucció per als aprenents |
29 | |||
13781 | bpr | 30 | \text{explain=Completa.} |
31 | |||
12172 | mquerol | 32 | :Dades principals. |
33 | Les preguntes que heu de fer s'han de posar entre un parell de |
||
34 | doble-signe d'interrogació "??". |
||
23 | reyssat | 35 | <p> |
12172 | mquerol | 36 | La pregunta és una opció múltiple del tipus menú si conté diversos objectes separats |
37 | per comes, la primera és la resposta correcta. Si la pregunta (entre ??) només |
||
13781 | bpr | 38 | conté un objecte, és llavors una resposta lliure (resposta que cal escriure), numèric si es tracta d'un |
13488 | obado | 39 | número o text en altre cas.</p> |
40 | <p> |
||
12172 | mquerol | 41 | Podeu fer fins a 20 preguntes al text. |
42 | Si hi ha diverses respostes correctes en una resposta lliure, separeu |
||
43 | totes les respostes correctes (sinònims) amb una línia vertical <span class = "tt wims_code_words"> </ span>. |
||
13488 | obado | 44 | L'anàlisi es realitza a partir de simtext per als experts.</p> |
12172 | mquerol | 45 | <p>$embraced_randitem</p> |
46 | \text{data= |
||
14235 | obado | 47 | Linux va ser creat el ??1991?? per Linus Torvalds, |
48 | estudiant ??finès, suec, nord-americà, anglès, nòrdic??, |
||
49 | mentre estava fent el seu aprenentatge en el sistema ??Minix?? |
||
50 | en màquines d'arquitectura ??Intel 386,Sun,Macintosh,Bull,Microsoft??. |
||
51 | |||
52 | En un grup de notícies va publicat la primera versió |
||
53 | del seu sistema, era la versió ??0.02??. |
||
54 | |||
23 | reyssat | 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 | |||
14235 | obado | 68 | :Tipus d'anàlisi de resposta |
69 | Els tipus <span class="tt">case</span> i <span class="tt">nocase</span> estan especialment adaptats |
||
70 | per a aplicacions de llengües. En altres casos, es preferible <span class="tt">atext</span>. |
||
71 | \text{type_rep=item(3,case (cap tolerància d'error), |
||
72 | nocase (tolera minúscula/majúscula), |
||
73 | atext (ignora singular/plural i articles))} |
||
74 | |||
23 | reyssat | 75 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
76 | \precision{10000} |
||
77 | \text{data=wims(singlespace \data)} |
||
12172 | mquerol | 78 | \text{data=\accolade issametext sí ? wims(embraced randitem \data)} |
23 | reyssat | 79 | \text{data=slib(text/cutchoice2 \data)} |
80 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
12172 | mquerol | 81 | |
23 | reyssat | 82 | \text{types=} |
83 | \text{options=} |
||
84 | \text{lengths=} |
||
85 | \text{good=} |
||
86 | \text{field=} |
||
12172 | mquerol | 87 | |
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]} |
||
12172 | mquerol | 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,} |
||
104 | }{ |
||
105 | \text{good=\good\f,} |
||
106 | \integer{c=wims(charcnt \f)} |
||
107 | \text{field=\field;} |
||
108 | \real{test=\f} |
||
109 | \if{\test issametext NaN}{ |
||
110 | \text{test=wims(translate internal | to , in \f)} |
||
111 | \integer{c=wims(charcnt \test[1])} |
||
112 | \integer{c=min(50,max(6,\c+6))} |
||
113 | \text{lengths=\lengths\c,} |
||
14235 | obado | 114 | \text{types=\types[]\type_rep,} |
23 | reyssat | 115 | \text{options=| isin \f?\options[]symtext} |
116 | }{ |
||
117 | \integer{c=max(5,\c+2)} |
||
118 | \text{lengths=\lengths\c,} |
||
119 | \text{f1=wims(nospace \f)} |
||
120 | \text{test=wims(text select -0123456789 in \f)} |
||
121 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
||
122 | } |
||
123 | } |
||
124 | \text{options=\options,} |
||
125 | } |
||
126 | |||
127 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
||
128 | \steps{\qlist} |
||
129 | |||
130 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
131 | |||
132 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
133 | |||
13781 | bpr | 134 | \statement{<div>\explain</div> |
12172 | mquerol | 135 | \data[1;] |
136 | \for{k=1 to \qs}{ |
||
137 | \if{\types[\k] notsametext menu}{ |
||
13781 | bpr | 138 | \embed{r \k,\lengths[\k]} |
139 | }{ |
||
140 | \embed{r \k,\lengths[\k]}} |
||
12172 | mquerol | 141 | \data[2*\k+1;] |
142 | } |
||
23 | reyssat | 143 | } |
144 | |||
145 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
146 | |||
147 | \answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]} |
||
148 | \answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]} |
||
149 | \answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]} |
||
150 | \answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]} |
||
151 | \answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]} |
||
152 | \answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]} |
||
153 | \answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]} |
||
154 | \answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]} |
||
155 | \answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]} |
||
156 | \answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]} |
||
157 | \answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]} |
||
158 | \answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]} |
||
159 | \answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]} |
||
160 | \answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]} |
||
161 | \answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]} |
||
162 | \answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]} |
||
163 | \answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]} |
||
164 | \answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]} |
||
165 | \answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]} |
||
166 | \answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]} |
||
167 | |||
12172 | mquerol | 168 | \feedback{1=1}{\feedback_general} |