How to write your own Quizzes
The question files are plain text files so you need to create them in a text editor e.g. Notepad. If you use a word processor (e.g. Word) you must remember to save the file as plain text so it's safer to stick to Notepad.
- On the first line of the question file write your first question.
- If it is a true/false question write either true or false on the next line (true if the statement is true, false if it's not).
- If it is a multiple choice question instead of a true or false question write, instead of true (or false) write mult and then a number 1-4 that tells the program which option is the correct answer (e.g. 1 if the first answer is correct) Then on the next four lines write the four possible answers, one per line.
- On the next line write the next question, and on the following line either true, false or mult and a number etc.
- When you have written enough questions just save the file.
Example question file:
1) Helium fusion happens in a red giant?
true
2) Which situation is a lunar eclipse?
mult 3
Earth, Moon, Sun in line; Moon in middle
Moon, Sun, Earth in a line; Sun in middle
Moon, Earth, Sun in a line; Earth in middle
Earth, Moon Sun in L-shaped arrangement
3) ...and which is a solar eclipse?
mult 1
Earth, Moon, Sun in line; Moon in middle
Moon, Sun, Earth in a line; Sun in middle
Moon, Earth, Sun in a line; Earth in middle
Earth, Moon Sun in L-shaped arrangement
true
2) Which situation is a lunar eclipse?
mult 3
Earth, Moon, Sun in line; Moon in middle
Moon, Sun, Earth in a line; Sun in middle
Moon, Earth, Sun in a line; Earth in middle
Earth, Moon Sun in L-shaped arrangement
3) ...and which is a solar eclipse?
mult 1
Earth, Moon, Sun in line; Moon in middle
Moon, Sun, Earth in a line; Sun in middle
Moon, Earth, Sun in a line; Earth in middle
Earth, Moon Sun in L-shaped arrangement
So we have three questions, the first is a true or false question and the answer is true. The next two are both multiple choice, the correct answer to 2) is the third option and the correct answer to 3) is the first option.
Have fun.
Jon
web (at) coralbark (dot) net