Example of a quiz using JavaScript.



This example illustrates the use of a JavaScript program associated with a quiz.
The correct effect (date today) will, however, only seen if a script file with the contents displayed further down has been associated with this quiz.
The script file must have the name indicated in one of the last entry fields in this definition form. (And your browser must support the use of JavaScript).
Alternatively, in the said entry field you can replace the name of the associated file with the JavaScript program enclosed between two lines containing, respectively, .

The JavaScript program contains the following lines defining objects dayname, monthname and today:

var dayname = new Array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' )
var monthname = new Array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' )
var today = new Date

Script files are transferred to the quiz server via this form.

Question number 1 . Any answer will be correct.

When all questions have been answered click this button:

Click the Print button above if you want a print of this form including your answers.
Your identification (for print only):