Click to See Complete Forum and Search --> : Need of Assistance


omahabr945
10-11-2003, 08:56 PM
Hello,

I have written a 23 mulitiple choice quiz in HTML. I need help in creating a script to grade the exam and post the results. This would be a page the user is sent to after they submit the test. They would be able to print the page showing their results. Not really sure how to go about this. Any information would be greatly appreciated.

Thank You!!

:confused: :confused: :confused: :confused: :confused:

jrbp
10-11-2003, 09:07 PM
Do you want to post the results on a seperate html page so everyone can see or do you just want to show the person who took the quiz?

If you just want to show the person who took the test post you message in the javascript or php forum.

Charles
10-12-2003, 06:00 AM
JavaScript would be a bad choice for this. Because some of the 13% of people who do not use it cannot because of some disability, a JavaScript dependent page is an inaccessible one. Check with a local accessibility lawyer to find out if your page is required to be accessible.

jimr451
10-12-2003, 07:48 PM
Using perl on the backend would work fine, and you wouldn't have to deal with the Javascript compatibility and accessibility issues.

The basic flow for the perl script would be something like:

Gather the answers from the form,

Compare against correct answers (answersheet)

Log results (do you want to have a file of the results?)

Display results to the student.

Of course, this gets more complex if you need to authenticate the students and make sure each one only submits one test, but it's mostly just a check at the beginning.

Hope this helps get you started!

-Jim

omahabr945
10-14-2003, 09:18 PM
# Sample Question
#
#1. How many months are there in a year?
#<INPUT TYPE="radio" NAME="q1" VALUE="a">a. 6 <br>
#<INPUT TYPE="radio" NAME="q1" VALUE="b">b. 10 <br>
#<INPUT TYPE="radio" NAME="q1" VALUE="c">c. 12 <br>
#<INPUT TYPE="radio" NAME="q1" VALUE="d">d. 18</p>

#################################################
# #
# Script File #
# #
#################################################


%NAME=("q1"VALUE="c",
"q2"VALUE="a",
"q3"VALUE="a",
"q4"VALUE="d",
"q5"VALUE="b",
"q6"VALUE="d",
"q7"VALUE="a",
"q8"VALUE="c",
"q9"VALUE="d",
"q10"VALUE="d",
"q11"VALUE="a",
"q12"VALUE="b",
"q13"VALUE="c",
"q14"VALUE="a",
"q15"VALUE="c",
"q16"VALUE="d",
"q17"VALUE="d",
"q18"VALUE="d",
"q19"VALUE="a",
"q20"VALUE="c",
"q21"VALUE="d",
"q22"VALUE="b",
"q23"VALUE="c",);

Don't know if I'm on the right track or not. Also, I want to be able to indicate on the output form which questions were missed and also the number answered correctly.