Subversion Repositories wimsdev

Rev

Rev 3987 | Rev 4537 | 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|algexp litexp formal,Mathematical expression, with formal comparison\
  8. text|case nocase,Text, words or sentences\
  9. multiple|checkbox click menu radio mark flashcard,Controlable multiple choices,buttons or menus\
  10.  
  11. !set typelist2=!trim\
  12. atext,Approximative text, with identification of singular and plural etc.\
  13. chembrut,Raw formula of a molecule,in chemistry\
  14. chemdraw,Draw a molecule,with Java applet\
  15. chemclick,Select atoms or bonds in a molecule,with Java applet\
  16. chemeq,Chemical equation, with balance analysis\
  17. chset,Set of characters,\
  18. clickfill|clickfill dragfill,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. crossword,Crosswords\
  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. puzzle,Make in order an image, as in a puzzle\
  31. range,Number within a given range, anything within the range is accepted\
  32. reorder,Reordering, given list of objects\
  33. set|set fset aset,Finite set,literal, formal or approximative\
  34. sigunits,Sigunits,number with unit and significant digits\
  35. symtext,Symtext,advanced tool of text identification\
  36. units,Number with unit, for physics\
  37. vector,Vector,formal comparison of components\
  38. wlist,List of words,\
  39.  
  40.  
  41. !set namelist=Basic types, Specific or advanced types
  42. !set symtextlist=text atext raw compose
  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.  
  65. <a name="freestyle"></a>
  66. <p><h4>Freestyle answers</h4> <p>
  67. A freestyle answer is one which is typed by the user.
  68. Up to $answerlim simultaneous freestyle answers can be asked for one
  69. exercise, under the current implementation. <p>
  70. The syntax is as follows:
  71. <pre>
  72. \answer{Texte}{\reponse}{type=...}{option=...}{weight=...}
  73. </pre>
  74. (The last 3 fields are optional.)
  75. <p>
  76. <h5>The parameter <tt class="wims_code_words">type</tt></h5>
  77. Each freestyle answer can independently take one of the following types.
  78.  
  79. !for i=1 to 2
  80.  <p><b>$(namelist[$i])</b>
  81.  !set n=!linecnt $(typelist$i)
  82.  <ul>
  83.  !for j=1 to $n
  84.   !set l=!line $j of $(typelist$i)
  85.   !distribute item $l into name,title
  86.   !set desc=!item 3 to -1 of $l
  87.   !set name=!replace internal | by , in $name
  88.   !set name1=!item 2 to -1 of $name
  89.   !set name=!item 1 of $name
  90.   !default name1=$name
  91.   !if $name isitemof $special_parm or all isitemof $special_parm
  92.    <li><p><a name="_$name"></a>
  93.    !read help/anstype/$name.phtml
  94.    !if $name iswordof $symtextlist
  95.     <p>
  96.     <b>Remark</b>.
  97.     This type of reply accepts the symtext option. If the word
  98.     <tt class="wims_code_words">symtext</tt> is declared in the option of the reply, the analysis of
  99.     the reply will be exactly as for
  100.     !href cmd=help&special_parm=reply,symtext#_symtext symtext
  101. , in particular with no preliminary processing of the texts. And all the
  102. symtext options will be understood in this case.
  103.    !endif
  104.    <p>
  105.   !else
  106.    <li>
  107.    !href cmd=help&special_parm=reply,$name#_$name $title
  108.   (<tt class="wims_code_words">$name1</tt>) $desc.
  109.   !endif
  110.  !next j
  111.  </ul>
  112. !next i
  113.  
  114. !read help/$lang/embedans.phtml
  115.  
  116. <h4>The optional parameter <tt class="wims_code_words">weight</tt></h4>
  117. <a name="weight"></a>
  118. It is possible to give a weight to answers.
  119. <p>
  120. Example :
  121. <pre>\answer{}{1}{type=numeric}{weight=8}
  122. \answer{}{1}{type=numeric}{weight=2}
  123. </pre>
  124.  
  125. Le niveau de sévérité  sera aussi pris en compte lors du
  126. calcul fait et le pourcentage sera pris sur un pourcentage fixé
  127. par le niveau de sévérité.
  128.  
  129. One can put variables in <tt class="wims_code_words">weight</tt>.
  130. <p>
  131. Example :
  132. <pre>
  133. \text{w = \t = 1 ? 1 : 2}
  134. \answer{}{1}{type=numeric}{weight=\t}
  135. \answer{}{1}{type=numeric}{weight=3}
  136. </pre>
  137.  
  138. <h4>Le paramètre optionnel <tt class="wims_code_words">option</tt></h4>
  139.  <a name="option"></a>
  140.  Dans le cas de plusieurs options, elles sont séparées par des espaces.
  141.  For example, <tt class="wims_code_words">option=default noanalyzeprint</tt>
  142.  
  143. Les options possibles à la suite d'une instruction <tt class="wims_code_variable">answer</tt>
  144. ou <tt class="wims_code_variable">condition</tt> sont
  145. <ul>
  146. <li><tt class="wims_code_words">option=default</tt> : The option <tt class="wims_code_words">default</tt> is common for all free answers :
  147. This option can take
  148. the form <tt class="wims_code_words">default="default_value"</tt>. If the
  149. user gives an empty reply, it is the default_value that will take place.
  150. </li>
  151. <li>
  152. <tt class="wims_code_words">option=split</tt> : In case of type <tt class="wims_code_words">correspond</tt>, <tt class="wims_code_words">checkbox</tt> or <tt class="wims_code_words">mark</tt>,
  153. there will be partial score.
  154. </li>
  155. <li>
  156. <tt class="wims_code_words">option=nonstop</tt> : In case of step exercises,
  157. following questions are asked even if the answer is false.
  158. </li>
  159. <li><tt class="wims_code_words">option=noanalyzeprint</tt> : Le texte automatique d'analyse de réponses n'est
  160. pas affiché. C'est donc à l'auteur de l'exercice de fournir un feedback convenable.
  161. Cela est utile dans certains types comme le type <tt class="wims_code_words">mark</tt> où le texte automatique
  162. est souvent inadéquat. Attention, l'analyse des conditions n'est pas non plus affichée.
  163. Seul le score subsiste.</li>
  164. <li>Following the instruction <tt class="wims_code_words">condition</tt>,
  165. <tt class="wims_code_words">option=hide</tt> :The condition is used to analyze the
  166. answer but will not be printed.
  167. </li>
  168. </ul>
  169. D'autres options peuvent être utilisables dans des types particuliers de réponses.
  170. <p>
  171.  
  172. <p><h4>Testing conditions</h4> <p>
  173. Under certain circumstances, it is desired that freestyle answers be tested
  174. by special conditions (questions with multiple good answers, exercises
  175. asking for examples, answers determined by inequalities, etc). This can be
  176. done in the following way. <p>
  177. If the good answer to a freestyle question is an undefined variable, the
  178. answer to this question will be fed into this variable. The latter can then
  179. be used to implement testing conditions. The score given to the exercise is
  180. then determined by the number of testing conditions which are met, rather
  181. than the number of answers which meet the good answers.
  182. <p>
  183. Up to $condlim simultaneous conditions can be defined for one
  184. exercise, under the current implementation. The syntax is as follows.
  185. <pre>
  186. \condition{prompt text}{testing conditions}{weight=...}
  187. </pre>
  188. (The last field is optional.)
  189. <p>
  190. Here are some examples of testing conditions. (<tt class="wims_code_variable">ans1</tt> and
  191. <tt class="wims_code_variable">ans2</tt> are undefined variables appearing in freestyle answers, as
  192. described above.)
  193. <small>
  194. !href target=wims_mhelp cmd=help&special_parm=if Complete list of relations
  195. </small>
  196. <p>
  197. $table_header
  198. $table_hdtr<th>Condition</th><th>meaning</th></tr>
  199. $table_tr<td><tt class="wims_code_variable">ans1>=0 and \ans1<=1</tt></td>
  200.    <td>Good if <tt class="wims_code_words">ans1</tt> is within the interval [0,1].</td></tr>
  201. $table_tr<td><tt class="wims_code_variable">ans1=1 or \ans1=3 or \ans1=5</tt></td>
  202.    <td>Good if <tt class="wims_code_words">ans1</tt> is 1, 3 or 5.</td></tr>
  203. $table_tr<td><tt class="wims_code_words">(\ans1)*(\ans2)=6 and (\ans1)+(\ans2)=5</tt></td>
  204.    <td>Good if <tt class="wims_code_words">ans1</tt> and <tt class="wims_code_words">ans2</tt> are the two
  205.    roots of the polynomial x<sup>2</sup>-5x+6.</td></tr>
  206. $table_tr<td><tt class="wims_code_words">sin(\ans1)=0</tt></td>
  207.    <td>Good if <tt class="wims_code_words">ans1</tt> is a multiple of $m_pi.</td></tr>
  208. $table_end <p>
  209. See
  210. !href cmd=help&special_parm=oef help on oef format
  211. for the syntax for defining replies.
  212.  
  213.