Subversion Repositories wimsdev

Rev

Rev 2616 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2616 Rev 3297
Line 1... Line -...
1
!set typelist1=!trim\
-
 
2
default,Auto,automatic determination of some basic types\
-
 
3
raw,raw text,control of comparison by options\
-
 
4
numeric,Number, with tolerance of precision\
-
 
5
function,Numerical function, function with numerical tests\
-
 
6
equation,Numerical equation,equation with numerical tests\
-
 
7
exp,Mathematical expression, with formal comparison\
-
 
8
text,Text, words or sentences\
-
 
9
multiple,Controlable multiple choices,buttons or menus\
-
 
10
 
-
 
11
 
-
 
12
!set typelist2=!trim\
-
 
13
atext,Approximative text, with identification of singular and plural etc.\
-
 
14
chembrut,Raw formula of a molecule,in chemistry\
-
 
15
chemdraw,Draw a molecule,with Java applet\
-
 
16
chemclick,Select atoms or bonds in a molecule,with Java applet\
-
 
17
chemeq,Chemical equation, with balance analysis\
-
 
18
clickfill,Drag-and-drop objets,text and image\
-
 
19
clicktile,Click and color tiles, need java\
-
 
20
compose,Compose, using given components\
-
 
21
coord,Click on image, recognition of coordinates and various regions\
-
 
22
correspond,Correspondance, establish the correspondance between pairs of objects\
-
 
23
chset,Set of characters,\
-
 
24
geogebra,Dynamic geometry,use applet GeoGebra\
-
 
25
javacurve,Java draw,\
-
 
26
jmolclick,Click on 3D atoms, use applet Jmol\
-
 
27
matrix,Matrix, mathematical\
-
 
28
numexp,Rational numbers, fractional writing\
-
 
29
range,Number within a given range, anything within the range is accepted\
-
 
30
reorder,Reordering, given list of objects\
-
 
31
set,Finite set,literal, formal or approximative\
-
 
32
sigunits,Sigunits,number with unit and significant digits\
-
 
33
symtext,Symtext,advanced tool of text identification\
-
 
34
units,Number with unit, for physics\
-
 
35
vector,Vector,formal comparison of components\
-
 
36
wlist,List of words,\
-
 
37
 
-
 
38
 
-
 
39
!set namelist=Basic types, Specific or advanced types
-
 
40
!set symtextlist=text atext raw compose
-
 
41
 
-
 
42
 
-
 
43
<center><h3>User replies to an exercise</h3></center> <p>
-
 
44
 
-
 
45
There are two basic ways in which an OEF exercise accepts user replies:
-
 
46
multiple choices and freestyle replies. User answers will be analyzed
-
 
47
according to the nature of the types. It is also possible to show
-
 
48
!href cmd=help&special_parm=feedback feedbacks
-
 
49
 to the user when the answer meeds a specified condition (usually to warn a
-
 
50
typical error).
-
 
51
 
-
 
52
<p><h4>Odgovori izbirnega tipa (Multiple choices)</h4> <p>
-
 
53
A multiple choice is defined by giving a list of good choices (one or
-
 
54
several) and another list of bad choices. <p>
-
 
55
Up to $choicelim simultaneous multiple choice questions can be asked for
-
 
56
one exercise, under the current implementation. The number of good and bad
-
 
57
choices within one multiple choice question is unlimited (except a limit on
-
 
58
the length of the string imposed by WIMS).
-
 
59
<p>
-
 
60
See
-
 
61
!href cmd=help&special_parm=oef help on OEF format
-
 
62
 for the syntax to define a multiple choice.
-
 
63
<p><h4>Prosti odgovori (Freestyle answers)</h4> <p>
-
 
64
A freestyle answer is one which is typed by the user.
-
 
65
Up to $answerlim simultaneous freestyle answers can be asked for one
-
 
66
exercise, under the current implementation. <p>
-
 
67
The syntax is as follows:
-
 
68
<tt>\answer{Texte}{\reponse}{type=...}{option=...}{weight=...}</tt>
-
 
69
<br>
-
 
70
(The last 3 fields are optional.)
-
 
71
<p>
-
 
72
 
-
 
73
<a name=freestyle></a>
-
 
74
Each freestyle answer can independently take one of the following types.
-
 
75
 
-
 
76
!for i=1 to 2
-
 
77
 <p><b>$(namelist[$i])</b>
-
 
78
 !set n=!linecnt $(typelist$i)
-
 
79
 <ul>
-
 
80
 !for j=1 to $n
-
 
81
  !set l=!line $j of $(typelist$i)
-
 
82
  !distribute item $l into name,title
-
 
83
  !set desc=!item 3 to -1 of $l
-
 
84
  !if $name isitemof $special_parm or all isitemof $special_parm
-
 
85
   <li><p><a name="_$name"></a>
-
 
86
   !read help/anstype/$name.phtml
1
!changeto help/en/reply.phtml
87
   !if $name iswordof $symtextlist
-
 
88
    <p>
-
 
89
    <b>Remark</b>.
-
 
90
    This type of reply accepts the symtext option. If the word
-
 
91
    <tt>symtext</tt> is declared in the option of the reply, the analysis of
-
 
92
    the reply will be exactly as for
-
 
93
    !href cmd=help&special_parm=reply,symtext#_symtext symtext
-
 
94
, in particular with no preliminary processing of the texts. And all the
-
 
95
symtext options will be understood in this case.
-
 
96
   !endif
-
 
97
   <p>
-
 
98
  !else
-
 
99
   <li>
-
 
100
   !href cmd=help&special_parm=reply,$name#_$name $title
-
 
101
   (<tt>$name</tt>) $desc.
-
 
102
  !endif
-
 
103
 !next j
-
 
104
 </ul>
-
 
105
!next i
-
 
106
 
-
 
107
<p>
-
 
108
Common option to freestyle answers: <tt>default</tt>. This option can take
-
 
109
the form <tt><font color=green>default="default_value"</font></tt>. If the
-
 
110
user gives an empty reply, it is the default_value that will take place.
-
 
111
 
-
 
112
<p><h4>Testing conditions</h4> <p>
-
 
113
Under certain circumstances, it is desired that freestyle answers be tested
-
 
114
by special conditions (questions with multiple good answers, exercises
-
 
115
asking for examples, answers determined by inequalities, etc). This can be
-
 
116
done in the following way. <p>
-
 
117
If the good answer to a freestyle question is an undefined variable, the
-
 
118
answer to this question will be fed into this variable. The latter can then
-
 
119
be used to implement testing conditions. The score given to the exercise is
-
 
120
then determined by the number of testing conditions which are met, rather
-
 
121
than the number of answers which meet the good answers.
-
 
122
<p>
-
 
123
Up to $condlim simultaneous conditions can be defined for one
-
 
124
exercise, under the current implementation. The syntax is as follows.
-
 
125
<p><tt>
-
 
126
\condition{prompt text}{testing conditions}{weight=...}
-
 
127
</tt>
-
 
128
(The last field is optional.)
-
 
129
<p>
-
 
130
Here are some examples of testing conditions. (<tt>\ans1</tt> and
-
 
131
<tt>\ans2</tt> are undefined variables appearing in freestyle answers, as
-
 
132
described above.)
-
 
133
<small>
-
 
134
!href target=wims_mhelp cmd=help&special_parm=if Complete list of relations
-
 
135
</small>
-
 
136
<p>
-
 
137
$table_header
-
 
138
$table_hdtr<th>Condition<th>meaning
-
 
139
$table_tr<td><tt>\ans1>=0 and \ans1<=1</tt>
-
 
140
    <td>Good if <tt>ans1</tt> is within the interval [0,1].
-
 
141
$table_tr<td><tt>\ans1=1 or \ans1=3 or \ans1=5</tt>
-
 
142
    <td>Good if <tt>ans1</tt> is 1, 3 or 5.
-
 
143
$table_tr<td><tt>(\ans1)*(\ans2)=6 and (\ans1)+(\ans2)=5</tt>
-
 
144
    <td>Good if <tt>ans1</tt> and <tt>ans2</tt> are the two
-
 
145
    roots of the polynomial x<sup>2</sup>-5x+6.
-
 
146
$table_tr<td><tt>sin(\ans1)=0</tt>
-
 
147
    <td>Good if <tt>ans1</tt> is a multiple of $m_pi.
-
 
148
$table_end <p>
-
 
149
See
-
 
150
!href cmd=help&special_parm=oef help on oef format
-
 
151
 for the syntax for defining replies.
-
 
152
 
-
 
153
<h4>The optional parameter <tt>weight</tt></h4>
-
 
154
<a name=weight></a>
-
 
155
It is possible to give a weight to answers.
-
 
156
<p>
-
 
157
Example :
-
 
158
<pre>\answer{}{1}{type=numeric}{weight=8}
-
 
159
\answer{}{1}{type=numeric}{weight=2}
-
 
160
</pre>
-
 
161
 
-
 
162
 
-
 
163
One can put variables in <tt>weight</tt>.
-
 
164
<p>
-
 
165
Example :
-
 
166
<pre>
-
 
167
\text{w = \t = 1 ? 1 : 2}
-
 
168
\answer{}{1}{type=numeric}{weight=\t}
-
 
169
\answer{}{1}{type=numeric}{weight=3}
-
 
170
</pre>
-
 
171
 
-
 
172
<h4>The optional parameter <tt>option</tt></h4>
-
 
173
 <a name=option></a>
-
 
174
The allowed options for <tt>\answer</tt>
-
 
175
or <tt>\condition</tt> are
-
 
176
<ul>
-
 
177
<li>
-
 
178
<tt>option=split</tt> : In case of type = <tt>correspond</tt>, <tt>checkbox</tt> or <tt>mark</tt>,
-
 
179
there will be partial score.
-
 
180
</li>
-
 
181
<li>
-
 
182
<tt>option=nonstop</tt> : In case of step exercises,
-
 
183
following questions are asked even if the answer is false.
-
 
184
</li>
-
 
185
<li>Following <tt>condition</tt> :
-
 
186
<tt>option=hide</tt> : The condition is used to analyze the
-
 
187
answer but will not be printed.
-
 
188
</li>
-
 
189
 
-
 
190
</ul>
-
 
191
 
-