TASK
No.2:
Developing a html-based Interactive Multiple-Choice Quiz from a text file
Topics may be educational topics for schools, management topics for offices, etc.
Recipe:
Step 1: Create a folder with name "quiz" in your computer (say in D partition)
Step 2: Create a text file typing in Notepad or any text editor in the quiz folder.
Format of the text file should be such that first character of every line is left blank
and correct choice answer line should start with "." - click here for example input file
Step 3: Click here to download "genquiz.htm" file which generates the output file as "myquiz.htm"
taking the input from "input.txt" file as described in step-2 above.
Here, please observe to modify the value of variable var qn in "genquiz.htm" file depending on
the number of questions in the "input.txt" file. Script in genquiz.htm was written using Jscript.
Step 4: Run the genquiz.htm file in the folder "D:\quiz". In case of change in the drive and folder name
you can modify the same in the genquiz.htm by editing in Notepad. Please observe any options
to be activated in Internet Explorer or any browser software to run the Jscript program.
Step 5: The genquiz.htm program file generates a file with name "myquiz.htm" in the same folder.
Users can use the program to test or review their knowledge of the students / trainees.
ADVANTAGE: Html-based interactive multiple choice quiz can be developed easily by typing in a simple text editor and also sourcing from collections from Internet or CDs.