/*********************************************** * JavaScriptKit.com Multiple Choice Quiz Script (http://www.javascriptkit.com) * Copyright 2003 JavaScript Kit- http://www.javascriptkit.com * This notice and footnote must stay intact for use * Visit JavaScript Kit (http://www.javascriptkit.com/) for full source code ***********************************************/ //Enter total number of questions: var totalquestions=20 //Enter the solutions corresponding to each question: var correctchoices=new Array() correctchoices[1]='e' correctchoices[2]='b' correctchoices[3]='d' correctchoices[4]='c' correctchoices[5]='a' correctchoices[6]='b' correctchoices[7]='c' correctchoices[8]='d' correctchoices[9]='b' correctchoices[10]='d' correctchoices[11]='c' correctchoices[12]='b' correctchoices[13]='a' correctchoices[14]='d' correctchoices[15]='e' correctchoices[16]='e' correctchoices[17]='b' correctchoices[18]='c' correctchoices[19]='c' correctchoices[20]='b' /////Don't edit beyond here////////////////////////// function gradeit(){ var incorrect=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;cSolution') win2.document.write('') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ for (temp=0;temp") wrong=0 } else win2.document.write("Question "+i+"="+correctchoices[i]+"
") } win2.document.write('
') win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.

JavaScript Kit quiz script") win2.document.close() }