Subversion Repositories wimsdev

Rev

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