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