Rev 13716 | 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"><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), |
||
15026 | obado | 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), |
||
15026 | obado | 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), |
||
15026 | obado | 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é %%%%%%%%%%%%%%%% |
||
15026 | obado | 91 | \css{<style> |
92 | .name {color:#047;} |
||
93 | .big_bullet>li{font-size:2em;color:#599;margin:0 0 .5em .5em;} |
||
94 | .big_bullet div, .big_bullet label{font-size:1rem;margin:.2em;} |
||
95 | .big_bullet .instruction,.big_bullet .reponse{color:initial;} |
||
96 | </style>} |
||
5815 | bpr | 97 | |
98 | \text{format1=wims(word 1 of \format1)} |
||
99 | \text{format2=wims(word 1 of \format2)} |
||
100 | \text{format3=wims(word 1 of \format3)} |
||
101 | \text{rep1=\data[1]} |
||
102 | \text{rep2=\data[2]} |
||
103 | \text{rep3=\data[3]} |
||
104 | |||
105 | \text{reponse1=\data[1]} |
||
106 | \text{reponse2=\data[2]} |
||
107 | \text{reponse3=\data[3]} |
||
108 | \if{\format1 issametext radio}{ |
||
109 | \text{rep1=\data[1];\choix1} |
||
110 | \text{reponse1=\choix1[\data[1]]} |
||
111 | } |
||
112 | \if{\format2 issametext radio}{ |
||
113 | \text{rep2=\data[2];\choix2} |
||
114 | \text{reponse2=\choix2[\data[2]]} |
||
115 | } |
||
116 | \if{\format3 issametext radio}{ |
||
117 | \text{rep3=\data[3];\choix3} |
||
118 | \text{reponse3=\choix3[\data[3]]} |
||
119 | } |
||
120 | \text{STEP=r1} |
||
121 | \if{\format2!=0}{ |
||
122 | \text{STEP=\STEP |
||
123 | r2} |
||
124 | \if{\format3!=0}{ |
||
125 | \text{STEP=\STEP |
||
126 | r3} |
||
127 | } |
||
128 | } |
||
129 | |||
5851 | bpr | 130 | \text{reponse1=<span class="oef_indgood">\reponse1</span>} |
131 | \text{reponse2=<span class="oef_indgood">\reponse2</span>} |
||
132 | \text{reponse3=<span class="oef_indgood">\reponse3</span>} |
||
12168 | mquerol | 133 | :Feedback a la segona etapa |
5851 | bpr | 134 | |
11378 | bpr | 135 | \text{feedback1=\name est un verbe du \reponse1.} |
5851 | bpr | 136 | |
12168 | mquerol | 137 | :Feedback a la tercera etapa |
5851 | bpr | 138 | |
12168 | mquerol | 139 | \text{feedback2=L'imparfait à la première personne du singulier de \name est \reponse2.} |
5851 | bpr | 140 | |
12168 | mquerol | 141 | :Feedback al final |
5851 | bpr | 142 | |
12168 | mquerol | 143 | \text{feedback3=Le futur à la première personne du singulier \name est \reponse3.} |
5851 | bpr | 144 | |
145 | |||
146 | :%%% |
||
5815 | bpr | 147 | \nextstep{\STEP} |
148 | |||
149 | \statement{ |
||
150 | <div>\instruction</div> |
||
15026 | obado | 151 | <ol class="big_bullet"><li> |
152 | <div class="instruction">\instruction1</div> |
||
153 | \if{\step=1 or \step>=4}{ |
||
154 | \if{\format1 notsametext radio}{ |
||
155 | <label class="reponse" for="reply1">\name_my_answer \embed{r1}</label> |
||
156 | }{ |
||
157 | <div class="reponse">\name_my_answer \embed{r1}</div> |
||
158 | } |
||
159 | }{ |
||
160 | <div class="reponse"> |
||
161 | \name_my_answer <span class="name">\reply1</span> |
||
162 | </div> |
||
163 | } |
||
5815 | bpr | 164 | |
15026 | obado | 165 | \if{\step>=2}{ |
166 | <div class="feedback |
||
167 | \if{\sc_reply1=1}{oef_indgood">\right}{\if{\sc_reply1<=0}{oef_indbad}{oef_indpartial}">\false} \feedback1 |
||
168 | </div> |
||
169 | </li><li> |
||
170 | <div class="instruction"> |
||
171 | \instruction2 |
||
172 | </div> |
||
5815 | bpr | 173 | } |
174 | |||
15026 | obado | 175 | \if{\step=2 or \step>=4}{ |
176 | \if{\format2 notsametext radio}{ |
||
177 | <label class="reponse" for="reply2">\name_my_answer \embed{r2}</label> |
||
178 | }{ |
||
179 | <div class="reponse">\name_my_answer \embed{r2}</div> |
||
180 | } |
||
181 | } |
||
182 | |||
183 | \if{\step>=3}{ |
||
184 | \if{\step < 4}{ |
||
185 | <div class="reponse"> |
||
186 | \name_my_answer <span class="name">\reply2</span> |
||
187 | </div> |
||
188 | } |
||
189 | <div class="feedback |
||
190 | \if{\sc_reply2=1}{oef_indgood">\right}{\if{\sc_reply2<=0}{oef_indbad}{oef_indpartial}">\false} \feedback2 |
||
191 | </div> |
||
192 | \if{\format3!=0}{ |
||
193 | </li><li> |
||
194 | <div class="instruction"> \instruction3</div> |
||
195 | \if{\format3 notsametext radio}{ |
||
196 | <label class="reponse" for="reply3">\name_my_answer \embed{r3}</label> |
||
197 | }{ |
||
198 | <div class="reponse">\name_my_answer \embed{r3}</div> |
||
199 | } |
||
200 | } |
||
201 | } |
||
5851 | bpr | 202 | \if{\step>=4 and \format3!=0}{ |
15026 | obado | 203 | <div class="feedback |
204 | \if{\sc_reply3=1}{oef_indgood">\right}{\if{\sc_reply3<=0}{oef_indbad}{oef_indpartial}">\false} \feedback3 |
||
205 | </div> |
||
5815 | bpr | 206 | } |
15026 | obado | 207 | </li> |
208 | </ol> |
||
5815 | bpr | 209 | } |
210 | |||
211 | \answer{}{\rep1}{type=\format1}{option=nonstop} |
||
212 | \answer{}{\rep2}{type=\format2}{option=nonstop} |
||
213 | \answer{}{\rep3}{type=\format3}{option=nonstop} |