Subversion Repositories wimsdev

Rev

Rev 12168 | Rev 15026 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11360 bpr 1
type=question
13716 obado 2
textarea="data instruction instruction1 instruction2 instruction3 feedback1 feedback2 feedback3"
3
iEdit="instruction instruction1 instruction2 instruction3 feedback1 feedback2 feedback3"
5815 bpr 4
 
12168 mquerol 5
:Es fan dues o tres preguntes successives sobre un objecte escollit a l'atzar d'una llista.
6
Podeu triar el tipus de preguntes
7
(numèrica, text, d'opció múltiple). En el cas d'una pregunta d'opció múltiple,
8
hem d'omplir la llista d'opcions.
5815 bpr 9
 
10
<p>
12168 mquerol 11
Les dades per a cada objecte (un objecte per línia) estan separades per comes
12
i formatats de la manera següent:
5815 bpr 13
</p>
14
<pre>
12168 mquerol 15
objecte, resposta a la pregunta 1, resposta a la pregunta 2, resposta a la pregunta 3
5815 bpr 16
</pre>
17
<p>
12168 mquerol 18
L'objecte pot ser una imatge (posar el codi html:: <span class="tt wims_address">&lt;img src="\imagedir/nom.png" alt=""/></span>).
19
En el cas d'una opció múltiple, la resposta és el número de l'opció correcta.
5815 bpr 20
</p>
21
<p>
12168 mquerol 22
Per als feedback, l'objecte pot ser cridat per la variable <span class="tt wims_code_variable">\name</span>.
5815 bpr 23
</p>
24
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
25
 
12168 mquerol 26
:\title{Preguntes successives sobre un objecte}
5815 bpr 27
:\author{Bernadette, Perrin-Riou}
28
:\email{bernadette.perrin-riou@math.u-psud.fr}
29
:\credits{}
30
 
31
:Format 1
12168 mquerol 32
\text{format1=item(1, radio (una opció de la següent llista),
33
    numeric (pregunta numèrica),
34
    case (sense tolerància d'error),
35
	nocase (tolera majúscules/minúscules),
36
	atext (ignora plural/singular i articles)
5815 bpr 37
	)}
12168 mquerol 38
:Llista d'opcions per a la pregunta 1 (si radio)
39
Doneu la llista d'opcions si seleccioneu el tipus radio.
5815 bpr 40
\text{choix1=premier groupe, deuxième groupe, troisième groupe}
41
 
42
:Format 2
12168 mquerol 43
\text{format2=item(3,radio (una opció de la següent llista),
44
    numeric (pregunta numèrica),
45
    case (sense tolerància d'error),
46
	nocase (tolera majúscules/minúscules),
47
	atext (ignora plural/singular i articles)
5815 bpr 48
	)}
12168 mquerol 49
:Llista d'opcions per a la pregunta 2 (si radio)
50
Doneu la llista d'opcions si seleccioneu el tipus radio.
5815 bpr 51
\text{choix2=}
52
:Format 3
12168 mquerol 53
\text{format3=item(4,0 (cap pregunta),
54
    radio (una opció de la següent llista),
55
    numeric (pregunta numèrica),
56
    case (sense tolerància d'error),
57
	nocase (tolera majúscules/minúscules),
58
	atext (ignora plural/singular i articles)
5815 bpr 59
	)}
12168 mquerol 60
:Llista d'opcions per a la pregunta 3 (si radio)
61
Doneu la llista d'opcions si seleccioneu el tipus radio.
5815 bpr 62
\text{choix3=}
12168 mquerol 63
:Text d'aprovació
64
\text{right=Tens raó.}
65
:Text de desaprovació
66
\text{false=La vostra resposta no és correcta.}
5815 bpr 67
 
12168 mquerol 68
:Dades principals
5815 bpr 69
\text{data= manger,1,Je mangeais, Je mangerai
70
finir, 2, Je finissais, Je finirai
71
courir,3, Je courais, Je courrai}
72
 
73
 
74
:%%%%%%%%%%%%%%
75
\text{data=randomrow(\data)}
76
\text{name=<span class="name">\data[1]</span>}
77
\text{data=\data[2..-1]}
78
 
12168 mquerol 79
:Enunciat general
5815 bpr 80
\text{instruction=Nous allons étudier le verbe \name.}
12168 mquerol 81
:Enunciat per a la primera etapa
5815 bpr 82
\text{instruction1=Donner le groupe de \name.}
83
 
12168 mquerol 84
:Enunciat per a la segona etapa
5815 bpr 85
\text{instruction2=Donner l'imparfait du verbe \name à la première personne du singulier sans oublier le pronom.}
86
 
12168 mquerol 87
:Enunciat per a la tercera etapa
5815 bpr 88
\text{instruction3=Donner le futur du verbe \name à la première personne du singulier sans oublier le pronom.}
89
 
90
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
13716 obado 91
\css{<style> .feedback{color:brown;padding:3pt;}.answer{color:navy;}.name {color:blue;}</style>}
5815 bpr 92
 
93
\text{format1=wims(word 1 of \format1)}
94
\text{format2=wims(word 1 of \format2)}
95
\text{format3=wims(word 1 of \format3)}
96
\text{rep1=\data[1]}
97
\text{rep2=\data[2]}
98
\text{rep3=\data[3]}
99
 
100
\text{reponse1=\data[1]}
101
\text{reponse2=\data[2]}
102
\text{reponse3=\data[3]}
103
\if{\format1 issametext radio}{
104
  \text{rep1=\data[1];\choix1}
105
  \text{reponse1=\choix1[\data[1]]}
106
}
107
\if{\format2 issametext radio}{
108
  \text{rep2=\data[2];\choix2}
109
  \text{reponse2=\choix2[\data[2]]}
110
}
111
\if{\format3 issametext radio}{
112
  \text{rep3=\data[3];\choix3}
113
  \text{reponse3=\choix3[\data[3]]}
114
}
115
\text{STEP=r1}
116
\if{\format2!=0}{
117
  \text{STEP=\STEP
118
  r2}
119
  \if{\format3!=0}{
120
  \text{STEP=\STEP
121
  r3}
122
  }
123
}
124
 
5851 bpr 125
\text{reponse1=<span class="oef_indgood">\reponse1</span>}
126
\text{reponse2=<span class="oef_indgood">\reponse2</span>}
127
\text{reponse3=<span class="oef_indgood">\reponse3</span>}
12168 mquerol 128
:Feedback a la segona etapa
5851 bpr 129
 
11378 bpr 130
\text{feedback1=\name est un verbe du \reponse1.}
5851 bpr 131
 
12168 mquerol 132
:Feedback a la tercera etapa
5851 bpr 133
 
12168 mquerol 134
\text{feedback2=L'imparfait à la première personne du singulier de \name est \reponse2.}
5851 bpr 135
 
12168 mquerol 136
:Feedback al final
5851 bpr 137
 
12168 mquerol 138
\text{feedback3=Le futur à la première personne du singulier \name est \reponse3.}
5851 bpr 139
 
140
 
141
:%%%
5815 bpr 142
\nextstep{\STEP}
143
 
144
\statement{
145
<div>\instruction</div>
146
<ol><li>
147
  <div class="instruction">
148
   \instruction1</div>
149
 \if{\step=1}{ \embed{r1} }
150
 \if{\step>=1}{</li>}
151
 \if{\step>=2}{<li>
152
  <div class="feedback">
12168 mquerol 153
 \if{\sc_reply1=1}{\right}{\false} \feedback1
5815 bpr 154
 </div>
155
 <div class="instruction">
156
  \instruction2
157
</div>
158
 }
159
 \if{\step=2}{
160
  \embed{r2}
161
 }
162
 \if{\step>=2}{</li>}
163
 
164
 \if{\step>=3}{<li>
165
   <div class="feedback">
12168 mquerol 166
  \if{\sc_reply2=1}{\right}{\false} \feedback2
5815 bpr 167
   </div>
168
   \if{\step >=3 and \format3!=0}{
6151 bpr 169
     <div class="instruction"> \instruction3</div>
5851 bpr 170
     <p>\embed{r3}</p>
5815 bpr 171
   }
172
  }
173
 \if{\step>=3}{</li>}
174
 
5851 bpr 175
  </ol>
176
  \if{\step>=4 and \format3!=0}{
5815 bpr 177
   <div class="feedback">
12168 mquerol 178
  \if{\sc_reply3=1}{\right}{\false} \feedback3
5815 bpr 179
   </div>
180
  }
5851 bpr 181
 
5815 bpr 182
}
183
 
184
\answer{}{\rep1}{type=\format1}{option=nonstop}
185
\answer{}{\rep2}{type=\format2}{option=nonstop}
186
\answer{}{\rep3}{type=\format3}{option=nonstop}