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