Subversion Repositories wimsdev

Rev

Rev 2448 | Rev 3350 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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