Subversion Repositories wimsdev

Rev

Rev 13550 | Rev 13715 | 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
23 reyssat 2
textarea="data"
3
 
12172 mquerol 4
:Elegir respuesta (menú desplegable o etiqueta) en un texto propuesto al azar.
23 reyssat 5
 
12172 mquerol 6
Este ejercicio presenta textos donde se insertan campos de opción múltiple.
23 reyssat 7
<p>
12172 mquerol 8
Para construir un ejercicio con este modelo, solo ingrese los textos.
9
Una sintaxis sencilla permite incorporar los campos de elección en los textos.
13478 obado 10
</p><p class="wims_credits">
12172 mquerol 11
Autor del modelo: Gang Xiao <qualite@wimsedu.info>, modificado por Bernadette Perrin-Riou
13478 obado 12
(añadir la opción clickfill)</p>
23 reyssat 13
 
13478 obado 14
:%%%%%%%%%%%%%%%%%      ATENCIÓN      %%%%%%%%%%%%%%%%%%%%
23 reyssat 15
 
13478 obado 16
Elimina la cabecera anterior si borra las etiquetas para el modelo!
17
(Son las líneas que comienzan con un ':'.)
18
En caso contrario el ejercicio puede no funcionar bajo Createxo.
23 reyssat 19
 
13478 obado 20
:%%%%%%%% Parámetros del ejemplo a redefinir %%%%%%%%%%%%%%%%%
23 reyssat 21
 
12172 mquerol 22
:\title{Menús desplegables o etiquetas en varios textos}
5147 bpr 23
:\author{XIAO, Gang}
8002 bpr 24
:\email{qualite@wimsedu.info}
5724 bpr 25
:\credits{}
23 reyssat 26
 
12172 mquerol 27
:Formato de respuesta
28
Posibilidades: menu, clickfill, dragfill
29
<ul><li><dl class="tt">clickfill</dl> etiqueta a mover (una etiqueta se puede usar varias veces).
30
</li>
31
<li><dl class="tt">dragfill</dl> etiqueta a mover (cada etiqueta puede ser
32
usada solo una vez).
33
</li>
34
<li><dl class="tt">menu</dl> menú desplegable.
35
</li></ul>
7165 bpr 36
\text{format=item(1,menu,
37
	clickfill,
38
	dragfill)}
4706 bpr 39
 
12172 mquerol 40
:Tamaño de las cajas (clickfill, dragfill)
4706 bpr 41
\text{len=150 x 25}
13478 obado 42
 
12172 mquerol 43
:Datos principales
44
Escribir los textos separados por punto y coma.
45
Los textos en sí no pueden contener
46
punto y coma. <p>
47
La pregunta que debe formularse debe hacerse entre un par de
48
doble-signo interrogantes "??", siendo la respuesta correcta la primera.
49
Puede hacer hasta 20 preguntas en el mismo texto.
4706 bpr 50
 
23 reyssat 51
$embraced_randitem
52
\text{data=
12172 mquerol 53
Le dernier empereur ??Pu Yi, Pu Jie, Ci Xi, Yuan Shikai??
54
de la dernière dynastie chinoise ??Qing,Ming,Song,Tang??, fut destitué par
55
??une révolte militaire,les envahisseurs japonais,l'armée Rouge soviétique,
56
les communistes?? en
57
??1911,1917,1937,1945,1949??. Il
58
??est décédé par maladie,a été exécuté,s'est suicidé?? en
59
??1967,1911,1918,1945,1950,1960?? à Beijing.;
23 reyssat 60
 
12172 mquerol 61
Après une bataille ??féroce,facile??, les japonais ont envahi Shanghai en
62
??1937,1932,1938,1940,1941,1942?? qui comptait une concession
63
occidentale "commune" à l'époque. Ils ont
64
??partiellement,totalement,nullement?? respecté la neutralité de la concession
65
pendant l'occupation jusqu'en ??1941,1939,1942,1945??. L'abolition de la
66
concession fut prononcée pour la première fois par le gouvernement
67
??fantoche,nationaliste,communiste??
68
en ??1943,1945,1949,1960??.;
23 reyssat 69
 
12172 mquerol 70
La première guerre de l'opium a été déclenchée par
71
??la Grande Bretagne,la France, les Etats-Unis, plusieurs pays occidentaux??
72
contre ??la Chine, l'Inde?? en ??1839,{1739,1741,1756},1841,1856??, dans le but
73
??de protéger,d'interdire?? le trafic de drogue (opium). Cette guerre s'est
74
soldée par la capitulation du gouvernement ??chinois,indien??
75
??3,2,4,5,8?? ans après, avec la signature du traité de
23 reyssat 76
??Nankin,Pekin,Canton,Maguan,Taiping,Tianjin??.;
77
}
78
 
12172 mquerol 79
:Texto mostrado antes de la pregunta. Etiquetas HTML permitidas. Puede estar vacío.
23 reyssat 80
$embraced_randitem
12172 mquerol 81
\text{pre=Completa las casillas:<p>}
23 reyssat 82
 
12172 mquerol 83
:Texto que se muestra después de la pregunta. Etiquetas HTML permitidas Puede estar vacío.
23 reyssat 84
$embraced_randitem
85
\text{post=}
86
 
12172 mquerol 87
:Se acepta texto aleatorio puesto entre llaves
7165 bpr 88
$embraced_randitem
12172 mquerol 89
\text{accolade=item(1,1 sí,
7165 bpr 90
2 no)}
91
 
13478 obado 92
:%%%%%%%%%%%%%% Nada que modificar hasta el enunciado %%%%%%%%%%%%%%%%
13550 bpr 93
\text{accolade=wims(word 1 of \accolade)}
7165 bpr 94
\text{format=wims(word 1 of \format)}
13565 bpr 95
\text{len=\format issametext menu ? }
23 reyssat 96
\text{data=wims(singlespace \data)}
97
\text{data=wims(nonempty rows \data)}
98
\text{data=randomrow(\data)}
7165 bpr 99
\text{data=\accolade=1 ?wims(embraced randitem \data)}
23 reyssat 100
\text{data=slib(text/cutchoice2 \data)}
101
\integer{qs=min(20,floor(rows(\data)/2))}
102
 
103
\text{good=}
104
\text{field=}
105
\for{i=1 to \qs}{
106
 \text{f=\data[2*\i;]}
107
 \text{g=\f[1]}
108
 \text{f=wims(sort items \f)}
4706 bpr 109
 \text{g1=positionof(\g,\f)}
7165 bpr 110
 \text{good=\format iswordof clickfill dragfill ?\good\g,:\good\g1,}
23 reyssat 111
 \text{field=\field\f;}
112
}
113
 
7165 bpr 114
\text{pre=\accolade=1 ?wims(embraced randitem \pre)}
115
\text{post=\accolade=1 ?wims(embraced randitem \post)}
23 reyssat 116
\text{qlist=wims(makelist reply x for x=1 to \qs)}
117
\steps{\qlist}
118
 
12172 mquerol 119
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
23 reyssat 120
 
12172 mquerol 121
::Vous n'avez pas besoin de modifier ceci en général.
23 reyssat 122
 
13565 bpr 123
\statement{
124
  <div class="instruction">\pre</div>
125
  \data[1;]
126
  \for{k=1 to \qs}{
127
    \embed{r \k,\len} \data[2*\k+1;]
128
  }
129
  \post
23 reyssat 130
}
131
 
12172 mquerol 132
:%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5
23 reyssat 133
 
4706 bpr 134
\answer{Champ 1}{\good[1];\field[1;]}{type=\format}
135
\answer{Champ 2}{\good[2];\field[2;]}{type=\format}
136
\answer{Champ 3}{\good[3];\field[3;]}{type=\format}
137
\answer{Champ 4}{\good[4];\field[4;]}{type=\format}
138
\answer{Champ 5}{\good[5];\field[5;]}{type=\format}
139
\answer{Champ 6}{\good[6];\field[6;]}{type=\format}
140
\answer{Champ 7}{\good[7];\field[7;]}{type=\format}
141
\answer{Champ 8}{\good[8];\field[8;]}{type=\format}
142
\answer{Champ 9}{\good[9];\field[9;]}{type=\format}
143
\answer{Champ 10}{\good[10];\field[10;]}{type=\format}
144
\answer{Champ 11}{\good[11];\field[11;]}{type=\format}
145
\answer{Champ 12}{\good[12];\field[12;]}{type=\format}
146
\answer{Champ 13}{\good[13];\field[13;]}{type=\format}
147
\answer{Champ 14}{\good[14];\field[14;]}{type=\format}
148
\answer{Champ 15}{\good[15];\field[15;]}{type=\format}
149
\answer{Champ 16}{\good[16];\field[16;]}{type=\format}
150
\answer{Champ 17}{\good[17];\field[17;]}{type=\format}
151
\answer{Champ 18}{\good[18];\field[18;]}{type=\format}
152
\answer{Champ 19}{\good[19];\field[19;]}{type=\format}
153
\answer{Champ 20}{\good[20];\field[20;]}{type=\format}
23 reyssat 154