Subversion Repositories wimsdev

Rev

Rev 13704 | Rev 15026 | 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
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>
13714 obado 17
The object can be an image (put the html code: <span class="tt wims_address">&lt;img src="\imagedir/picture.png" alt="describe the picture."/></span>).
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 %%%%%%%%%%%%%%%%
13714 obado 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>}
5815 bpr 98
 
99
\text{format1=wims(word 1 of \format1)}
100
\text{format2=wims(word 1 of \format2)}
101
\text{format3=wims(word 1 of \format3)}
102
\text{rep1=\data[1]}
103
\text{rep2=\data[2]}
104
\text{rep3=\data[3]}
105
 
13714 obado 106
\text{response1=\data[1]}
107
\text{response2=\data[2]}
108
\text{response3=\data[3]}
5815 bpr 109
\if{\format1 issametext radio}{
110
  \text{rep1=\data[1];\choix1}
13714 obado 111
  \text{response1=\choix1[\data[1]]}
5815 bpr 112
}
113
\if{\format2 issametext radio}{
114
  \text{rep2=\data[2];\choix2}
13714 obado 115
  \text{response2=\choix2[\data[2]]}
5815 bpr 116
}
117
\if{\format3 issametext radio}{
118
  \text{rep3=\data[3];\choix3}
13714 obado 119
  \text{response3=\choix3[\data[3]]}
5815 bpr 120
}
121
\text{STEP=r1}
122
\if{\format2!=0}{
123
  \text{STEP=\STEP
124
  r2}
125
  \if{\format3!=0}{
126
  \text{STEP=\STEP
127
  r3}
128
  }
129
}
130
 
13714 obado 131
\text{response1=<span class="oef_indgood">\response1</span>}
132
\text{response2=<span class="oef_indgood">\response2</span>}
133
\text{response3=<span class="oef_indgood">\response3</span>}
5851 bpr 134
 
13714 obado 135
:First step feedback
136
Type "\response1" to display the response to this question.
137
\text{feedback1=This verb is \response1.}
5851 bpr 138
 
13714 obado 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.}
5851 bpr 142
 
13714 obado 143
:Third step feedback
144
Type "\response3" to display the response to this question.
145
\text{feedback3=The past participle of the verb \name is \response3.}
5851 bpr 146
 
147
 
148
:%%%
5815 bpr 149
\nextstep{\STEP}
150
 
151
\statement{
152
<div>\instruction</div>
13714 obado 153
<ol class="big_bullet"><li>
154
  <div class="instruction">\instruction1</div>
155
  \if{\step=1 or \step>=4}{ <div class="reponse">\name_my_answer \embed{r1}</div> }
156
  {<div class="reponse">
157
      \name_my_answer <span class="name">\reply1</span>
158
   </div>}
5815 bpr 159
 
13714 obado 160
  \if{\step>=2}{
161
    <div class="feedback">
162
      \if{\sc_reply1=1}{\right}{\false} \feedback1
163
    </div>
164
    </li><li>
165
    <div class="instruction">
166
      \instruction2
167
    </div>
5815 bpr 168
  }
13714 obado 169
  \if{\step=2 or \step>=4}{ <div class="reponse">\name_my_answer \embed{r2}</div> }
5815 bpr 170
 
13714 obado 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
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
  }
5851 bpr 186
  \if{\step>=4 and \format3!=0}{
13714 obado 187
    <div class="feedback">
188
      \if{\sc_reply3=1}{\right}{\false} \feedback3
189
    </div>
5815 bpr 190
  }
13714 obado 191
  </li>
192
</ol>
5815 bpr 193
}
194
 
195
\answer{}{\rep1}{type=\format1}{option=nonstop}
196
\answer{}{\rep2}{type=\format2}{option=nonstop}
197
\answer{}{\rep3}{type=\format3}{option=nonstop}