Index | Introduction | Requirements | Features | (Installation) | Usage |
Step 5: Create the question files The question files for the database is a set of (usually) small files, one for each question (new, single-file database mode added, see below). The order of the contents in the files are important. You create the files using a simple text editor. Each question file contains the type of question, the correct answer(s), the question, the answer alternatives, and optionally a question-group hint text, and an explanation of the correct answer. A description of the file format follows: 1 O = one answer is correct, select with radio buttons M = multiple answers could be correct, select with checkbox buttons L = logical answer, select true or false with radio buttons 1 = exactly one answer is correct, select with radio buttons 2 = exactly two answers are correct, select with checkbox buttons T = enter text as answer, not finished as of 3-Jan-2000 2 This line contains a "F" for each incorrect answer, and a "T" for each correct answer. This line also tells how many answer alternatives there are available for the question. 3 The question. 4 The first answer alternative. The following answer alternatives are on the lines after this one. 4 + answers Question group hint text, to be shown in the question area above the question. 5 + answers Explanation of the correct answer, or the other answer alternatives The two last lines in the question files are optional. The question data files should be saved with a numerical name, starting at 1 and increasing by 1 for each question. As an alternative to have a single question in each file, you can put all questions in one larger file (saving disk space by reducing the number of files used). The format of each question is the same as described above, with a "*" on a single line before each question (no "*" after the last question). You will also have to enable this feature in the quiz configuration file by using the $bigdb directive, containing the name of the file with the questions (full path, or relative to the same directory that the quiz configuration is in). Now, the quiz system should be ready for use. | |||||
Prev page | |||||
Quizzer and its documentation is Copyright © 1999, 2000 by P-O Yliniemi |