The true/false separator line contains question type information and the correct answer. All AppletQuiz questions start with a separator line, which begins with a backslash ("\") character.
Immediately following the backslash (no spaces permitted) must be the characters "TF" (not case sensitive) to indicate a true/false question. If the preceding question was also a true/false question, then the "TF" characters are optional.
Next comes one or more blank spaces, followed by the letter "A" (for "Answer").
Next comes one or more blank spaces, followed by either the letter "T" (for "True") or "F" (for "False).
If a correct answer is not given, the question will load into AppletQuiz just fine, but AppletQuiz will not display the question since it won't be able to check a student's answer.
Separator Line |
Comments |
---|---|
\TF A T |
OK (answer is "True") |
\tf a f |
also OK, since separator lines are not case sensitive. (answer is "false")
|
\ A F |
OK as long as the preceding question was also a true/false question. (answer is "False") |
\ TF A T |
NOT legal, because of the spaces between the "\" and the "T" |
\TF |
Legal, but the question won't display since it has no correct answer given. (Although there is an alternate answer format.) |
The true-false question text consists of one or more lines of text starting immediately following the separator line. You can type it just as you would type the question into a test or quiz - no special formatting is required.
You do not need to be concerned about line breaks - AppletQuiz will format your text to fit the available space on the screen. AppletQuiz will honor line breaks that you type into the question, however, and blank lines are also allowed.
Note that you do NOT type a question number for your question. This will be supplied by the AppletQuiz applet.
Sample Question |
Comments |
---|---|
\TF A T This is a simple true/false question. |
A simple one-line question. (Answer is "true".) |
\TF A T This is a very, very long true/false question that just goes, and goes, and goes on and on. AppletQuiz will format this question to fit the available space. |
Very long strings are permissible. You do not have to worry about placing line breaks into the question text. |
\TF A T This is a multi-line question. The blank line above will appear when the question is displayed. This line will start at the left of the window, no matter what, since "Return" was pressed at the end of the last line.. |
Multi-line questions are permissible. Blank lines that you type into the question text will be honored. If you start a new line in the question text by pressing "Enter" or "Return", AppletQuiz will honor your line break. |
An example question is shown below as it appears in the question file, and as it appears in the AppletQuiz applet.
A "Basic" True/False Question. |
---|
How the question appears in the question file: \TF A T The first President of the United States was George Washington.
|
How the question appears in the AppletQuiz applet: |
AppletQuiz will consider all text to be part of the current question until it reaches another separator line, so to start the next question, start the next line in the file with the backslash (separator) character. For example, the following file contains three true/false questions:
\TF A T This is the first question. \TF A T This is the second question. \TF A T This is the last question.
No special formatting needs to be placed at the end of a question file. When AppletQuiz runs out of questions, it stops reading. (Extra lines at the end of a question file may confuse AppletQuiz, so you might want to check to be sure that your text editor does not insert a bunch of blank lines...)