Rev 13775 | 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 |
23 | reyssat | 2 | textarea="data" |
3 | |||
11860 | mquerol | 4 | :Triar les respostes dels camps d'opció múltiple. Només es pot proposar un text. |
23 | reyssat | 5 | |
11860 | mquerol | 6 | Aquest exercici presenta un text on s'insereixen diversos camps d'opció múltiple. |
23 | reyssat | 7 | <p> |
11860 | mquerol | 8 | Per construir un exercici amb aquest model, simplement introduïu el text. |
9 | Una sintaxi fàcil permet incorporar els camps d'opció múltiple en el text. |
||
13476 | obado | 10 | <p class="wims_credits"> |
11860 | mquerol | 11 | Autor del model: Gang Xiao <qualite@wimsedu.info> |
23 | reyssat | 12 | |
11860 | mquerol | 13 | :%%%%%%%%%%%%%%%%% ATENCIÓ %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 14 | |
11860 | mquerol | 15 | Elimineu la capçalera anterior si esborreu les etiquetes per al model! |
16 | (Són les línies que comencen amb un ':'.) |
||
17 | En cas contrari exercici pot no funcionar sota Createxo. |
||
23 | reyssat | 18 | |
11860 | mquerol | 19 | :%%%%%%%% Exemples de paràmetres a redefinir %%%%%%%%%%%%%%%%% |
23 | reyssat | 20 | |
11860 | mquerol | 21 | :\title{Camps d'opció múltiple en un text} |
5147 | bpr | 22 | :\author{XIAO, Gang} |
8002 | bpr | 23 | :\email{qualite@wimsedu.info} |
11860 | mquerol | 24 | :\credits{} |
23 | reyssat | 25 | |
11860 | mquerol | 26 | :Dades principals |
27 | Les preguntes s'han de posar entre un parell de |
||
28 | doble-interrogant "??": les diferents opcions s'han de separar |
||
29 | per comes, l'opció correcta ha d'anar la primera. |
||
30 | Poden haver fins a 20 preguntes en la mateixa frase. |
||
4248 | bpr | 31 | |
11860 | mquerol | 32 | El text aquí és fixe. El model <b>Camps d'opció múltiple en un text</b> permet variar els textos. |
23 | reyssat | 33 | $embraced_randitem |
11860 | mquerol | 34 | \text{data= |
35 | Omplir: <br /> |
||
36 | Linux va ser creat el |
||
23 | reyssat | 37 | ??1991,1995,1998,1986,1989,2001?? |
11860 | mquerol | 38 | per Linus Torvalds, estudiant |
39 | ??finès, suec, nord-americà, anglès, nòrdic??, mentre estava fent el seu |
||
40 | aprenentatge en el sistema |
||
41 | ??Minix,Unix,Solaris?? en màquines d'arquitectura |
||
42 | ??Intel 386,Sun,Macintosh,Bull,Microsoft??. En un grup de notícies va publicat la primera versió |
||
43 | del seu sistema, era la versió |
||
23 | reyssat | 44 | ??0.02,0.00,0.01,0.12,1.00??. |
45 | } |
||
46 | |||
11860 | mquerol | 47 | :S'accepta text aleatori posat entre claus |
48 | $embraced_randitem |
||
49 | \text{accolade=item(1,1 sí, |
||
50 | 2 no)} |
||
23 | reyssat | 51 | |
11860 | mquerol | 52 | :%%%%%%%%%%%%%% Res a canviar abans de l'enunciat %%%%%%%%%%%%%%%% |
53 | \text{accolade=wims(word 1 of \accolade)} |
||
23 | reyssat | 54 | \text{data=wims(singlespace \data)} |
11860 | mquerol | 55 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
23 | reyssat | 56 | \text{data=slib(text/cutchoice2 \data)} |
57 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
58 | |||
59 | \text{good=} |
||
60 | \text{field=} |
||
61 | \for{i=1 to \qs}{ |
||
62 | \text{f=\data[2*\i;]} |
||
63 | \text{g=\f[1]} |
||
64 | \text{f=wims(sort items \f)} |
||
65 | \text{g=positionof(\g,\f)} |
||
66 | \text{good=\good\g,} |
||
67 | \text{field=\field\f;} |
||
68 | } |
||
69 | |||
11860 | mquerol | 70 | \text{pre=\accolade=1 ? wims(embraced randitem \pre)} |
71 | \text{post=\accolade=1 ? wims(embraced randitem \post)} |
||
23 | reyssat | 72 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
73 | \steps{\qlist} |
||
74 | |||
11860 | mquerol | 75 | :%%%%%%%%%%%%% Ara l'enunciat en format HTML. %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 76 | |
11860 | mquerol | 77 | ::Vostè no necessita canviar això en general. |
23 | reyssat | 78 | |
79 | \statement{ |
||
80 | \data[1;] |
||
81 | \for{k=1 to \qs}{ |
||
82 | \embed{r \k,\len} \data[2*\k+1;] |
||
83 | } |
||
84 | } |
||
85 | |||
11860 | mquerol | 86 | :%%%%%%%%%%%%% Res a canviar per sota. %%%%%%%%%%%%%%%%%5 |
23 | reyssat | 87 | |
11860 | mquerol | 88 | \answer{Camp 1}{\good[1];\field[1;]}{type=menu} |
89 | \answer{Camp 2}{\good[2];\field[2;]}{type=menu} |
||
90 | \answer{Camp 3}{\good[3];\field[3;]}{type=menu} |
||
91 | \answer{Camp 4}{\good[4];\field[4;]}{type=menu} |
||
92 | \answer{Camp 5}{\good[5];\field[5;]}{type=menu} |
||
93 | \answer{Camp 6}{\good[6];\field[6;]}{type=menu} |
||
94 | \answer{Camp 7}{\good[7];\field[7;]}{type=menu} |
||
95 | \answer{Camp 8}{\good[8];\field[8;]}{type=menu} |
||
96 | \answer{Camp 9}{\good[9];\field[9;]}{type=menu} |
||
97 | \answer{Camp 10}{\good[10];\field[10;]}{type=menu} |
||
98 | \answer{Camp 11}{\good[11];\field[11;]}{type=menu} |
||
99 | \answer{Camp 12}{\good[12];\field[12;]}{type=menu} |
||
100 | \answer{Camp 13}{\good[13];\field[13;]}{type=menu} |
||
101 | \answer{Camp 14}{\good[14];\field[14;]}{type=menu} |
||
102 | \answer{Camp 15}{\good[15];\field[15;]}{type=menu} |
||
103 | \answer{Camp 16}{\good[16];\field[16;]}{type=menu} |
||
104 | \answer{Camp 17}{\good[17];\field[17;]}{type=menu} |
||
105 | \answer{Camp 18}{\good[18];\field[18;]}{type=menu} |
||
106 | \answer{Camp 19}{\good[19];\field[19;]}{type=menu} |
||
107 | \answer{Camp 20}{\good[20];\field[20;]}{type=menu} |