Web-based Quiz System Logo, Math Sciences, UK Web-based Quiz System
     About the "data" file...

Note!

This system is being developed, so anything contained in this file is subject to massive change without notification. For more (accurate/timely/insightful/useful) information, you are encouraged to write to me.
Thanks,
Dan Chaney (chaney@ms.uky.edu)


The data file actually contains the individual quiz information. It supports a number of options, formats and input methods. This file attempts to explain those options but may seem overwhelming to the new user so you may want to read the more gentle introduction in the "About.." document.

Having said that...

The data file is a flat ASCII file which is read in a line at a time with each line being tagged uniquely at the beginning with a one or two character tag or identifier, followed by a : separator. For example:

     Q1: This is the text of the first question
     A1: This is the text of the first answer
     A2: This is the text of the second answer.
In this example, Q1, A1 and A2 are all tags. The use of the information on the respective lines is determined according to the tag information.

Notice that the general format of each line is:

tag : information The tag is an indicator of the type of information on the rest of the line. Each tag is a single character followed by a number.
The alledgedly canonical list of tags is:
Quiz-content lines (Q, A, T and P lines) may actually reference data from other files using the {include:filename} method. Instead of placing lengthy questions within the data file, you may choose to include the data from a different file. To use the include file method, you will need to either specify the entire path in the filename field (i.e.,{include:/u/disk3/staff/chaney/wqs/quiz1/question1.txt}) or set the common directory for all the included files using the F0 tag.

A common use for the include method allows the quiz-writer to incorporate HTML files which have been generated from other programs. Care should be taken when using generated files to insure any pictures or relative references in the generated HTML will be accessible from the web for remote users. An example of this is given in the bottom of the "About.." document.