Rev 15026 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=question |
13714 | obado | 2 | textarea="data instruction instruction1 instruction2 instruction3 feedback1 feedback2 feedback3" |
3 | iEdit="instruction instruction1 instruction2 instruction3 feedback1 feedback2 feedback3" |
||
5815 | bpr | 4 | |
13714 | obado | 5 | :We ask two or three successive questions on a random object. |
6 | You can choose the type of questions (numeric, text, multiple choice question). |
||
7 | In the case of a multiple-choice question, the list of choices must be completed. |
||
5815 | bpr | 8 | |
9 | <p> |
||
13714 | obado | 10 | The data for each object (one object per line) are separated by commas |
11 | and formatted as follows: |
||
5815 | bpr | 12 | </p> |
13 | <pre> |
||
13714 | obado | 14 | object, answer to question 1, answer to question 2, answer to question 3 |
5815 | bpr | 15 | </pre> |
16 | <p> |
||
17175 | bpr | 17 | The object can be an image (put the html code: <span class="tt wims_address"><img src="\imagedir/picture.png" alt="describe the picture."></span>). |
13714 | obado | 18 | In the case of a multiple choice, the answer is the number of the right choice. |
5815 | bpr | 19 | </p> |
20 | <p> |
||
13714 | obado | 21 | For feedback, the object can be called by the variable <span class="tt wims_code_variable">\name</span>.</p> |
22 | |||
11544 | obado | 23 | :%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%% |
5815 | bpr | 24 | |
13714 | obado | 25 | :\title{Successive questions about an object} |
5815 | bpr | 26 | :\author{Bernadette, Perrin-Riou} |
27 | :\email{bernadette.perrin-riou@math.u-psud.fr} |
||
28 | :\credits{} |
||
29 | |||
30 | :Format 1 |
||
13714 | obado | 31 | \text{format1=item(1, radio (a choice from the following list), |
32 | numeric (numeric question), |
||
33 | case (no error tolerance), |
||
13704 | obado | 34 | nocase (tolerate lowercase / uppercase), |
13714 | obado | 35 | atext (ignore plural / singular and articles) |
36 | )} |
||
13477 | obado | 37 | |
13714 | obado | 38 | :List of choices for question 1 (if radio) |
39 | Give the list of choices if you chose the radio type. The first is the good one. |
||
40 | \text{choix1=regular, irregular} |
||
5815 | bpr | 41 | |
42 | :Format 2 |
||
13714 | obado | 43 | \text{format2=item(3,radio (a choice from the following list), |
44 | numeric (numeric question), |
||
13704 | obado | 45 | case (no error tolerance), |
46 | nocase (tolerate lowercase / uppercase), |
||
13714 | obado | 47 | atext (ignore plural / singular and articles) |
5815 | bpr | 48 | )} |
13477 | obado | 49 | |
13714 | obado | 50 | :List of choices for question 2 (if radio) |
51 | Give the list of choices if you chose the radio type. The first is the good one. |
||
5815 | bpr | 52 | \text{choix2=} |
13477 | obado | 53 | |
5815 | bpr | 54 | :Format 3 |
13714 | obado | 55 | \text{format3=item(4,0 (no question), |
56 | radio (a choice from the following list), |
||
57 | numeric (numeric question), |
||
13704 | obado | 58 | case (no error tolerance), |
59 | nocase (tolerate lowercase / uppercase), |
||
13714 | obado | 60 | atext (ignore plural / singular and articles) |
5815 | bpr | 61 | )} |
13477 | obado | 62 | |
13714 | obado | 63 | :List of choices for question 3 (if radio) |
64 | Give the list of choices if you chose the radio type. The first is the good one. |
||
5815 | bpr | 65 | \text{choix3=} |
13477 | obado | 66 | |
13714 | obado | 67 | :Approval text |
68 | \text{right=You are right.} |
||
13477 | obado | 69 | |
13714 | obado | 70 | :Disapproval text |
71 | \text{false=Your answer is not right.} |
||
5815 | bpr | 72 | |
13477 | obado | 73 | :Main data |
13714 | obado | 74 | \text{data= to eat, 2, ate, eaten |
75 | to finish, 1, finished, finished |
||
76 | to run, 2, ran, run |
||
77 | to see, 2, saw, seen} |
||
5815 | bpr | 78 | |
79 | :%%%%%%%%%%%%%% |
||
80 | \text{data=randomrow(\data)} |
||
81 | \text{name=<span class="name">\data[1]</span>} |
||
82 | \text{data=\data[2..-1]} |
||
83 | |||
13714 | obado | 84 | :General Instruction |
85 | \text{instruction=We will study the verb \name.} |
||
13477 | obado | 86 | |
13714 | obado | 87 | :First step instruction |
88 | \text{instruction1=Is "\name" a regular or irregular verb?} |
||
5815 | bpr | 89 | |
13714 | obado | 90 | :Second step instruction |
91 | \text{instruction2=Give the 3<sup>rd</sup> person singular past tense of the verb \name} |
||
5815 | bpr | 92 | |
13714 | obado | 93 | :Third step instruction |
94 | \text{instruction3=Give the past participle of the verb \name} |
||
5815 | bpr | 95 | |
11544 | obado | 96 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
15026 | obado | 97 | \css{<style> |
98 | .name {color:#047;} |
||
99 | .big_bullet>li{font-size:2em;color:#599;margin:0 0 .5em .5em;} |
||
100 | .big_bullet div, .big_bullet label{font-size:1rem;margin:.2em;} |
||
101 | .big_bullet .instruction,.big_bullet .reponse{color:initial;} |
||
102 | </style>} |
||
5815 | bpr | 103 | |
104 | \text{format1=wims(word 1 of \format1)} |
||
105 | \text{format2=wims(word 1 of \format2)} |
||
106 | \text{format3=wims(word 1 of \format3)} |
||
107 | \text{rep1=\data[1]} |
||
108 | \text{rep2=\data[2]} |
||
109 | \text{rep3=\data[3]} |
||
110 | |||
13714 | obado | 111 | \text{response1=\data[1]} |
112 | \text{response2=\data[2]} |
||
113 | \text{response3=\data[3]} |
||
5815 | bpr | 114 | \if{\format1 issametext radio}{ |
115 | \text{rep1=\data[1];\choix1} |
||
13714 | obado | 116 | \text{response1=\choix1[\data[1]]} |
5815 | bpr | 117 | } |
118 | \if{\format2 issametext radio}{ |
||
119 | \text{rep2=\data[2];\choix2} |
||
13714 | obado | 120 | \text{response2=\choix2[\data[2]]} |
5815 | bpr | 121 | } |
122 | \if{\format3 issametext radio}{ |
||
123 | \text{rep3=\data[3];\choix3} |
||
13714 | obado | 124 | \text{response3=\choix3[\data[3]]} |
5815 | bpr | 125 | } |
126 | \text{STEP=r1} |
||
127 | \if{\format2!=0}{ |
||
128 | \text{STEP=\STEP |
||
129 | r2} |
||
130 | \if{\format3!=0}{ |
||
131 | \text{STEP=\STEP |
||
132 | r3} |
||
133 | } |
||
134 | } |
||
135 | |||
13714 | obado | 136 | \text{response1=<span class="oef_indgood">\response1</span>} |
137 | \text{response2=<span class="oef_indgood">\response2</span>} |
||
138 | \text{response3=<span class="oef_indgood">\response3</span>} |
||
5851 | bpr | 139 | |
13714 | obado | 140 | :First step feedback |
141 | Type "\response1" to display the response to this question. |
||
142 | \text{feedback1=This verb is \response1.} |
||
5851 | bpr | 143 | |
13714 | obado | 144 | :Second step feedback |
145 | Type "\response2" to display the response to this question. |
||
146 | \text{feedback2=The 3<sup>rd</sup> person singular past tense of the verb \name is \response2.} |
||
5851 | bpr | 147 | |
13714 | obado | 148 | :Third step feedback |
149 | Type "\response3" to display the response to this question. |
||
150 | \text{feedback3=The past participle of the verb \name is \response3.} |
||
5851 | bpr | 151 | |
152 | |||
153 | :%%% |
||
5815 | bpr | 154 | \nextstep{\STEP} |
155 | |||
156 | \statement{ |
||
157 | <div>\instruction</div> |
||
13714 | obado | 158 | <ol class="big_bullet"><li> |
159 | <div class="instruction">\instruction1</div> |
||
15026 | obado | 160 | \if{\step=1 or \step>=4}{ |
161 | \if{\format1 notsametext radio}{ |
||
162 | <label class="reponse" for="reply1">\name_my_answer \embed{r1}</label> |
||
163 | }{ |
||
164 | <div class="reponse">\name_my_answer \embed{r1}</div> |
||
165 | } |
||
166 | }{ |
||
167 | <div class="reponse"> |
||
13714 | obado | 168 | \name_my_answer <span class="name">\reply1</span> |
15026 | obado | 169 | </div> |
170 | } |
||
5815 | bpr | 171 | |
13714 | obado | 172 | \if{\step>=2}{ |
15026 | obado | 173 | <div class="feedback |
174 | \if{\sc_reply1=1}{oef_indgood">\right}{\if{\sc_reply1<=0}{oef_indbad}{oef_indpartial}">\false} \feedback1 |
||
13714 | obado | 175 | </div> |
176 | </li><li> |
||
177 | <div class="instruction"> |
||
178 | \instruction2 |
||
179 | </div> |
||
5815 | bpr | 180 | } |
181 | |||
15026 | obado | 182 | \if{\step=2 or \step>=4}{ |
183 | \if{\format2 notsametext radio}{ |
||
184 | <label class="reponse" for="reply2">\name_my_answer \embed{r2}</label> |
||
185 | }{ |
||
186 | <div class="reponse">\name_my_answer \embed{r2}</div> |
||
187 | } |
||
188 | } |
||
189 | |||
13714 | obado | 190 | \if{\step>=3}{ |
191 | \if{\step < 4}{ |
||
192 | <div class="reponse"> |
||
193 | \name_my_answer <span class="name">\reply2</span> |
||
194 | </div> |
||
195 | } |
||
15026 | obado | 196 | <div class="feedback |
197 | \if{\sc_reply2=1}{oef_indgood">\right}{\if{\sc_reply2<=0}{oef_indbad}{oef_indpartial}">\false} \feedback2 |
||
13714 | obado | 198 | </div> |
199 | \if{\format3!=0}{ |
||
200 | </li><li> |
||
201 | <div class="instruction"> \instruction3</div> |
||
15026 | obado | 202 | \if{\format3 notsametext radio}{ |
203 | <label class="reponse" for="reply3">\name_my_answer \embed{r3}</label> |
||
204 | }{ |
||
205 | <div class="reponse">\name_my_answer \embed{r3}</div> |
||
206 | } |
||
13714 | obado | 207 | } |
208 | } |
||
5851 | bpr | 209 | \if{\step>=4 and \format3!=0}{ |
15026 | obado | 210 | <div class="feedback |
211 | \if{\sc_reply3=1}{oef_indgood">\right}{\if{\sc_reply3<=0}{oef_indbad}{oef_indpartial}">\false} \feedback3 |
||
13714 | obado | 212 | </div> |
5815 | bpr | 213 | } |
13714 | obado | 214 | </li> |
215 | </ol> |
||
5815 | bpr | 216 | } |
217 | |||
218 | \answer{}{\rep1}{type=\format1}{option=nonstop} |
||
219 | \answer{}{\rep2}{type=\format2}{option=nonstop} |
||
220 | \answer{}{\rep3}{type=\format3}{option=nonstop} |