This is a text containing a schema for specifying a dialog quiz on a QuizComposer server. Click the links # for detailed instructions.

Create_hyper_quiz_0_1 #

0

Display_MathML_0_1 #

0

For_regist_answerers_0_1 #

0

Heading #

Example of a quiz using JavaScript.

Introduction #






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, <script> and </script>.

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.

Intro_repeat_0_1 #

0

Qstn_name_number_1 #

1

Qstn_phrase_1 #

Any answer will be correct.

Correct_answer_1 #

^.*

Hints_1 #

Reward_1 #

Qstn_name_number_2

2

Qstn_phrase_2

Correct_answer_2

Hints_2

Reward_2

Qstn_name_number_3

3

Qstn_phrase_3

Correct_answer_3

Hints_3

Reward_3

Qstn_name_number_4

4

Qstn_phrase_4

Correct_answer_4

Hints_4

Reward_4

Qstn_name_number_5

5

Qstn_phrase_5

Correct_answer_5

Hints_5

Reward_5

Qstn_name_number_6

6

Qstn_phrase_6

Correct_answer_6

Hints_6

Reward_6

Qstn_name_number_7

7

Qstn_phrase_7

Correct_answer_7

Hints_7

Reward_7

Qstn_name_number_8

8

Qstn_phrase_8

Correct_answer_8

Hints_8

Reward_8

Qstn_name_number_9

9

Qstn_phrase_9

Correct_answer_9

Hints_9

Reward_9

Qstn_name_number_10

10

Qstn_phrase_10

Correct_answer_10

Hints_10

Reward_10

Specs_from_quiz #

Specify in the following entry fields your own texts for communication with answerers. For quizzes being created using a schema not containing such specifications you can obtain the same effect by referring to a quiz created with this schema.

Text_before_qstn_number #

Question number

Text_after_qstn_number #

.

Field_dimensions #

30 60 6

Text_before_submit_button #

When all questions have been answered click this button:

Text_on_submit_button #

SUBMIT THIS FORM

Text_before_answer_count_pr_qstn #

This question answered correctly with answer number %%.

Text_all_qstns_answered_correctly #

Congratulations! you have answered all questions correctly. Number of incorrect answers: %%.

Text_this_qstn_answered_correctly #

This question was answered correctly:

Text_one_qstn_answered_but_incorrectly #

You answered one question but the answer was incorrect. Therefore this single question is presented again. Later the rest of the questions will be presented to you:

Text_more_qstns_answered_incorrectly #

The following question(s) were answered incorrectly or not answered at all:

Text_on_printing_answer #

Click the Print button above if you want a print of this form including your answers.

Text_on_print_identification #

Your identification (for print only):

Text_bad_type_or_format_of_answer #

The following answer (or answer part) is of wrong type or has a bad format:

Text_final_message #

Name_quiz_with_logo_definition #

Name_quiz_with_CSS_definition #

Name_quiz_with_script_definition #

javascript_en.js