home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / hypsh40b.arj / HYPDEVEL.LZH / MCHOICE.HYP < prev    next >
Text File  |  1991-04-24  |  3KB  |  209 lines

  1. .REMARK
  2. Multi choice skeleton
  3.  
  4. This handles the questioning part of CAI only.
  5. Normally there would be instructional frames followed
  6. by questions, with return to the instructions if answers
  7. are incorrect.
  8.  
  9. Bothe timeout and timing skeletons are provided
  10. .SCRIPT RESET
  11. VT0
  12. VC0
  13. VW0
  14. VF4;Y Number of frames
  15. VO0
  16. VQ4
  17. Va--------;Vb--------;Vc--------
  18. .SCRIPT SETUP
  19. VS&C59
  20. VN~g        ~APress space for next question~PZL1x$SF+~K ~E
  21. .REMARK
  22. This script allows 5 seconds to choose an answer
  23. then times out. It tallies timeouts, correct and wrong answers.
  24. It then waits for 5 seconds or key press before next question.
  25. Note .5 second catch for key presses just after the timeout.
  26. .SCRIPT Choose
  27. VR&G500;jbTIMEOUT
  28. vR$\;jnWRONG
  29. VMCORRECT - Well done~g
  30. VC=C+1
  31. JNEXT
  32. LTIMEOUT
  33. VMOut of time
  34. VT=T+1
  35. JPMESS
  36. LWRONG
  37. VW=W+1
  38. VMWrong
  39. LPMESS
  40. VM$M - the answer was number $\~g
  41. LNEXT
  42. ZL1
  43. .SCRIPT Timing
  44. Y&H
  45. VR&K
  46. VT&J;VO=O+T
  47. vR$\;jnWRONG
  48. VMCORRECT - Well done~g
  49. VC=C+1
  50. JNEXT
  51. LWRONG
  52. VW=W+1
  53. VMWrong
  54. LPMESS
  55. VM$M - the answer was number $\~g
  56. LNEXT
  57. ZL1
  58. .
  59. .FRAME Timeout
  60. .TITLE Multiple choice with timeout
  61.  
  62.     Skeleton multi-choice
  63.  
  64.     Scores are maintained for
  65.  
  66.     Correct answers
  67.     Wrong answers
  68.     Timeouts
  69.  
  70.     And a percentage and rating are given
  71.  
  72. [ ]    ~APress space to start~PF+~K ~E
  73. .FRAME Question 1
  74. .TITLE DESCRIPTION
  75.  
  76.     ??QUESTION
  77.  
  78.     1. ANSWER 1
  79.  
  80.     2. ANSWER 2
  81.  
  82.     3. ANSWER 3
  83.  
  84.     4. ANSWER 4
  85.  
  86. ~h1    $M
  87. ~h1    Description of correct
  88. ~h1    Answer
  89. ~h1    $N
  90. ~A~PSchoose(?)~E~Q  ~H Replace ? with number of correct answer
  91. .
  92. .FRAME Question 2
  93. .TITLE DESCRIPTION
  94.  
  95.  
  96.     ??QUESTION
  97.  
  98.     1. ANSWER 1
  99.  
  100.     2. ANSWER 2
  101.  
  102.     3. ANSWER 3
  103.  
  104.     4. ANSWER 4
  105.  
  106. ~h1    $M
  107. ~h1    Description of correct
  108. ~h1    Answer
  109. ~h1    $N
  110. ~A~PSchoose(?)~E~Q  ~H Replace ? with number of correct answer
  111. .
  112. .FRAME Report 1
  113. .TITLE How well did you do
  114.  
  115.     Number of questions - $F
  116.  
  117.     Number of correct answers - $C
  118.  
  119.     Number of incorrect answers - $W
  120.  
  121.     Number of timeouts - $T
  122. ~A~Psscore~E~Q
  123. [ ]    ~APress space to return to main menu~PFMENU~K ~E
  124. .
  125. .SCRIPT score
  126. VP=C*100/F
  127. vP25;jlBAD
  128. vP50;jlAVERAGE
  129. vP75;jlGOOD
  130. VGBrilliant
  131. JDISP
  132. LBAD
  133. VGPretty aweful
  134. JDISP
  135. LAVERAGE
  136. VGAverage
  137. JDISP
  138. LGOOD
  139. VGVery good
  140. LDISP
  141. pYou scored $P percent correct - That's $G
  142. .
  143. .REMARK
  144. Multi choice with timing
  145. .FRAME Timing
  146. .TITLE Multiple choice with timing
  147.  
  148.     This is a skeleton for multichoice with timing
  149.  
  150.  
  151. [ ]    ~APress space to start~PF+~K ~E
  152. .
  153. .FRAME Q 1
  154. .TITLE Example
  155.  
  156.     Question
  157.  
  158.     1.    Answer 1
  159.  
  160.     2.    Answer 2
  161.  
  162.     3.    Answer 3
  163.  
  164. ~h1    $M
  165. ~h1    Description of correct answer
  166. ~h1    $N
  167. ~A~PSTiming(?)~E~Q    ~H replace ? with number of correct one
  168. .
  169. .FRAME Q 2
  170. .TITLE Example
  171.  
  172.     Question
  173.  
  174.     1.    Answer 1
  175.  
  176.     2.    Answer 2
  177.  
  178.     3.    Answer 3
  179.  
  180. ~h1    $M
  181. ~h1    Description of correct answer
  182. ~h1    $N
  183. ~A~PSTiming(?)~E~Q    ~H replace ? with number of correct one
  184. .
  185. .FRAME Report 2
  186. .TITLE Timing report
  187.  
  188.     Number of questions    $Q
  189.  
  190.     Number correct        $C
  191.  
  192.     Number wrong        $W
  193.  
  194.     Average response time    $A seconds
  195. ~A~Pscalc~E~Q
  196.  
  197. [ ]    ~APress space to return to main menu~PFMENU~K ~E
  198. .
  199. .REMARK
  200. Calculate average response in seconds / hundredths
  201. .SCRIPT calc
  202. VA=O/Q
  203. VB=A/100
  204. VA=A-B*100
  205. vA10;alVA0$A
  206. VA$B.$A
  207. y
  208. .
  209.