Categories:

Home / Free JavaScripts / Other / Here

Cut & Paste JavaScript Quiz Machine

Credit: Web Winder

Description: "This self-grading JavaScript Quiz will allow your visitors to test their knowledge of a subject related to your site. And not only does this script automatically calculate a letter grade, but it also lists references for wrong answers and only allows one attempt for each question. This particular JavaScript Self-Grading Quiz happens to be about the bible, but you can change it to whatever subject you desire simply by editing the code. You can also increase or decrease the number of questions as needed. Note that this script includes the use of arrays and may only work with netscape 3.0 or higher."- the author

Example:

Self-Grading Quiz

1997 Web Winder JavaScript Services All Rights Reserved.

Click on "Next Question" to start quiz. Be sure to use small letters (no caps) when entering your letter choice. Also, in order to get credit for each right answer, be sure to click on "Check Current Answer" before going on to the next question.

Question #:
Question:

a)

b)

c)

d)

Your choice:

Results:

Current Score: Points:  Percentage:  Letter Grade:

Directions

Step 1: Insert the below into the <head> section of your page. You will need to edit this code to change the questions/possible choices/answers to your own. See documentation inside for detailed information.

Step 2: Insert the below into the <body> section of your page:

Step 3: Insert the below into the <body> itself, like this:

<body onLoad="init()">


JavaScript Tools:
Site Info

CopyRight 1998-2014 JavaScript Kit. NO PART may be reproduced without author's permission.