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