Create QuizTXT from Questions and Answers
Write the question, correct answer, and, if needed, alternative answers or explanations in a TXT file using the format below.
When you upload the TXT file to QuizTXT, it displays the questions and grades them automatically, and you can retry only the questions answered incorrectly.
First Line: ++
Write the first line of the TXT file in the following format.
- Enter ++ at the beginning of the first line.
- Enter the question title in the second field.
- You may enter a description in the third field. It appears below the title on the question screen.
- The title and description are optional.
- Separate each field with the TAB key.
Writing Questions
- Write one question per line, followed by the correct answer and, if needed, alternative answers.
- Separate all fields with the TAB key.
- You may add multiple alternative answers after the correct answer.
- A single full-width or half-width numeral is treated as equivalent.
- If there are no alternative answers, enter only the question and correct answer.
- Blank lines are ignored.
Multiple-Choice Questions
Write the question on one line, then write each choice on a separate line below it.
Begin a correct choice with :@ and an incorrect choice with ::, then press the TAB key and write the choice text.
- :@ marks a correct choice.
- :: marks an incorrect choice.
- If there is more than one :@ choice, the question is displayed as a multiple-selection checkbox question.
- After :@ or ::, separate the marker and the choice with an actual TAB character.
- Write one choice per line below the question.
- To add an explanation, place a -- line after the choices.
True/False Questions
In the answer field, enter ○ if the statement is true, or × if it is false.
Images
On the line immediately after a question, enter [*], then specify the image URL in the second field, separated by an actual TAB character.
The second field contains the value of src (the image URL). The third field may contain the value of style. The style field is optional.
You can display multiple images for a single question by adding multiple [*] lines. Specify one image per line.
The images are displayed below the question in the order specified.
- Enter [*] using ASCII characters.
- Enter [*] in the first field.
- Enter the image URL in the second field.
- You may enter the contents of the style attribute in the third field. This field is optional.
- Separate each field with an actual TAB character.
- You can specify multiple images for a single question.
- To add multiple images, add one [*] line for each image.
- Specify an image URL that can be displayed directly in a web browser.
- If a question does not need an image, no [*] line is required.
style="..." attribute.Explanation
On the line immediately after the question, enter two ASCII hyphens --, press the TAB key, and then write the explanation.
For a multi-line explanation, write each line in the same format.
Comments
Lines beginning with two ASCII slashes // are treated as comments and are not displayed on the question screen.
Comments can be used for notes or to group questions within the source file.
If a line begins with ++++, all following lines are ignored.
Example
Copy the example below into a text editor and save it as a UTF-8 TXT file.
Separate fields with actual TAB characters.