Appendix: Separator Line Tokens


[Home][Index][Previous][Next]
The following tokens are used to construct the question separator lines in question files:

A (or "a")
Answer token. May appear anywhere on the separator line following the question-identifier token. It must be followed by one-or-more blank spaces, then one of the following:
  • "T" or "t" - indicates the correct answer is "true"
  • "F" or "f" - indicates the correct answer is "false"
  • "A" or "a" - indicates the correct answer is choice "A"
  • "B" or "b" - indicates the correct answer is choice "B"
  • "C" or "c" - indicates the correct answer is choice "C"
  • "D" or "d" - indicates the correct answer is choice "D"
  • "E" or "e" - indicates the correct answer is choice "E"
  • a string of up to 16 characters - indicates the correct answer for a short-answer question. Note: If the answer contains blank spaces, you must use the alternate "\A" answer format below.
\A (also "\a", "\ANSWER", or "\answer")
Alternate answer token. This must appear following the question, and the token must appear alone on a line of text. It must be followed by a line containing the question's correct answer.
"B" (or "b")
Scrambling token. May appear anywhere on the separator line following the question identifier token. It must be followed by one-or-more blank spaces, then one of the following:
  • "A" (or "a") - indicates that all answer choices should be scrambled.
  • "1" - indicates that all but the last (one) answer choices should be scrambled. Typically used for "none of these" or "all of these" answer choices.
  • "2" - indicates that all but the last two answer choices should be scrambled. Typically used if both "all of these" and "none of these" are answer choices.
  • "N" (or "n") - indicates that none of the answer choices should be scrambled. The effect is identical to having no "B" token at all. This is the default behavior.
"\FF"
Identifies the following question as a short-answer (free format) question. This must appear as the first characters in the separator line.
"\H" (or "\HINT", "\h", or "\hint")
Identifies the following line or lines (till the next separator line is encountered) as a hint to be displayed when the student presses the "Hint" button. It may be followed by one-or-more blank spaces, followed by:
  • W="value" - indicates the width (in pixels) of the hint window
  • H="value" - indicates the height (in pixels) of the hint window
  • URL=address - indicates URL of html document to open for the hint
"\MC"
Identifies the following question as a multiple-choice question. This must appear as the first characters in the separator line.
"\TF"
Identifies the following question as a true/false question. This must appear as the first characters in the separator line.
"\W" (or "\WHY", "\w", or "\why")
Identifies the following line or lines (till the next separator line is encountered) as an explanation to be displayed when the student presses the "Why?" button.It may be followed by one-or-more blank spaces, followed by:
  • W="value" - indicates the width (in pixels) of the explanation window
  • H="value" - indicates the height (in pixels) of the explanation window
  • URL=address - indicates URL of html document to open for the explanation
"\ "
Identifies the following question as the same type as the previous question. This must appear as the first characters in the separator line.

[Home][Index][Previous][Next]
copyright © 1998 by Jerry L. Stanbrough - all rights reserved.
last update May 14, 1999 by JL Stanbrough (jstanbro@venus.net)