Rev 13477 | Rev 13714 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=question |
5815 | bpr | 2 | textarea="data" |
3 | |||
7718 | bpr | 4 | :On pose deux ou trois questions successives sur un objet aléatoire. |
5815 | bpr | 5 | Vous pouvez choisir le type de questions |
7718 | bpr | 6 | (numérique, texte, question à choix multiples). Dans le cas d'une question à choix multiples, |
5815 | bpr | 7 | on doit remplir la liste des choix. |
8 | |||
9 | <p> |
||
10 | Les données pour chaque objet (un objet par ligne) sont séparées par des virgules |
||
11 | et formatées de la manière suivante : |
||
12 | </p> |
||
13 | <pre> |
||
14 | objet, réponse question 1, réponse question 2, réponse question 3 |
||
15 | </pre> |
||
16 | <p> |
||
7718 | bpr | 17 | L'objet peut être une image (mettre le code html : <span class="tt wims_address"><img src="\imagedir/nom.png" alt=""/></span>). |
5815 | bpr | 18 | Dans le cas d'un choix multiple, la réponse est le numéro du bon choix. |
19 | </p> |
||
20 | <p> |
||
5907 | bpr | 21 | Pour les feedback, l'objet peut être appelé par la variable <span class="tt wims_code_variable">\name</span>. |
5815 | bpr | 22 | </p> |
11544 | obado | 23 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
5815 | bpr | 24 | |
25 | :\title{Questions successives sur un objet} |
||
26 | :\author{Bernadette, Perrin-Riou} |
||
27 | :\email{bernadette.perrin-riou@math.u-psud.fr} |
||
28 | :\credits{} |
||
29 | |||
30 | :Format 1 |
||
31 | \text{format1=item(1, radio (un choix parmi la liste suivante), |
||
32 | numeric (question numérique), |
||
13704 | obado | 33 | case (no error tolerance), |
34 | nocase (tolerate lowercase / uppercase), |
||
5815 | bpr | 35 | atext (ignore pluriel/singulier et articles) |
36 | )} |
||
13477 | obado | 37 | |
5815 | bpr | 38 | :Liste de choix pour la question 1 (si radio) |
39 | Donner la liste des bons choix si vous avez choisi le type radio. |
||
40 | \text{choix1=premier groupe, deuxième groupe, troisième groupe} |
||
41 | |||
42 | :Format 2 |
||
5851 | bpr | 43 | \text{format2=item(3,radio (un choix parmi la liste suivante), |
5815 | bpr | 44 | numeric (question numérique), |
13704 | obado | 45 | case (no error tolerance), |
46 | nocase (tolerate lowercase / uppercase), |
||
5815 | bpr | 47 | atext (ignore pluriel/singulier et articles) |
48 | )} |
||
13477 | obado | 49 | |
5815 | bpr | 50 | :Liste de choix pour la question 2 (si radio) |
51 | Donner la liste des bons choix si vous avez choisi le type radio. |
||
52 | \text{choix2=} |
||
13477 | obado | 53 | |
5815 | bpr | 54 | :Format 3 |
5816 | bpr | 55 | \text{format3=item(4,0 (pas de question), |
5815 | bpr | 56 | radio (un choix parmi la liste suivante), |
57 | numeric (question numérique), |
||
13704 | obado | 58 | case (no error tolerance), |
59 | nocase (tolerate lowercase / uppercase), |
||
5815 | bpr | 60 | atext (ignore pluriel/singulier et articles) |
61 | )} |
||
13477 | obado | 62 | |
5815 | bpr | 63 | :Liste de choix pour la question 3 (si radio) |
64 | Donner la liste des bons choix si vous avez choisi le type radio. |
||
65 | \text{choix3=} |
||
13477 | obado | 66 | |
5815 | bpr | 67 | :Texte d'approbation |
68 | \text{right=Vous avez raison.} |
||
13477 | obado | 69 | |
5815 | bpr | 70 | :Texte de désaprobation |
71 | \text{false=Votre réponse n'est pas juste.} |
||
72 | |||
13477 | obado | 73 | :Main data |
5815 | bpr | 74 | \text{data= manger,1,Je mangeais, Je mangerai |
75 | finir, 2, Je finissais, Je finirai |
||
76 | courir,3, Je courais, Je courrai} |
||
77 | |||
78 | :%%%%%%%%%%%%%% |
||
79 | \text{data=randomrow(\data)} |
||
80 | \text{name=<span class="name">\data[1]</span>} |
||
81 | \text{data=\data[2..-1]} |
||
82 | |||
83 | :Instruction générale |
||
84 | \text{instruction=Nous allons étudier le verbe \name.} |
||
13477 | obado | 85 | |
5815 | bpr | 86 | :Instruction à la première étape |
87 | \text{instruction1=Donner le groupe de \name.} |
||
88 | |||
89 | :Instruction à la deuxième étape |
||
90 | \text{instruction2=Donner l'imparfait du verbe \name à la première personne du singulier sans oublier le pronom.} |
||
91 | |||
92 | :Instruction à la troisième étape |
||
93 | \text{instruction3=Donner le futur du verbe \name à la première personne du singulier sans oublier le pronom.} |
||
94 | |||
11544 | obado | 95 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
13704 | obado | 96 | \css{<style> .feedback{color:brown;padding:3pt;}.answer{color:navy;}.name {color:blue;}</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>} |
||
133 | :Feedback à la deuxième étape |
||
134 | |||
6661 | bpr | 135 | \text{feedback1=Le groupe est le groupe \reponse1.} |
5851 | bpr | 136 | |
137 | :Feedback à la troisième étape |
||
138 | |||
11564 | bpr | 139 | \text{feedback2=L'imparfait à la première personne du singulier de \name est \reponse2.} |
5851 | bpr | 140 | |
141 | :Feedback à la fin |
||
142 | |||
11564 | bpr | 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> |
||
151 | <ol><li> |
||
152 | <div class="instruction"> |
||
153 | \instruction1</div> |
||
154 | \if{\step=1}{ \embed{r1} } |
||
155 | \if{\step>=1}{</li>} |
||
156 | \if{\step>=2}{<li> |
||
157 | <div class="feedback"> |
||
11564 | bpr | 158 | \if{\sc_reply1=1}{\right}{\false} \feedback1 |
5815 | bpr | 159 | </div> |
160 | <div class="instruction"> |
||
161 | \instruction2 |
||
162 | </div> |
||
163 | } |
||
164 | \if{\step=2}{ |
||
165 | \embed{r2} |
||
166 | } |
||
167 | \if{\step>=2}{</li>} |
||
168 | |||
169 | \if{\step>=3}{<li> |
||
170 | <div class="feedback"> |
||
11564 | bpr | 171 | \if{\sc_reply2=1}{\right}{\false} \feedback2 |
5815 | bpr | 172 | </div> |
173 | \if{\step >=3 and \format3!=0}{ |
||
6151 | bpr | 174 | <div class="instruction"> \instruction3</div> |
5851 | bpr | 175 | <p>\embed{r3}</p> |
5815 | bpr | 176 | } |
177 | } |
||
178 | \if{\step>=3}{</li>} |
||
179 | |||
5851 | bpr | 180 | </ol> |
181 | \if{\step>=4 and \format3!=0}{ |
||
5815 | bpr | 182 | <div class="feedback"> |
11564 | bpr | 183 | \if{\sc_reply3=1}{\right}{\false} \feedback3 |
5815 | bpr | 184 | </div> |
185 | } |
||
5851 | bpr | 186 | |
5815 | bpr | 187 | } |
188 | |||
189 | \answer{}{\rep1}{type=\format1}{option=nonstop} |
||
190 | \answer{}{\rep2}{type=\format2}{option=nonstop} |
||
191 | \answer{}{\rep3}{type=\format3}{option=nonstop} |