diff --git a/src/lab/exp10/quizconfig.js b/src/lab/exp10/quizconfig.js index 34e066b..628a11d 100644 --- a/src/lab/exp10/quizconfig.js +++ b/src/lab/exp10/quizconfig.js @@ -19,7 +19,7 @@ correctchoices[5]='b' /////Don't edit beyond here////////////////////////// function gradeit(){ -var incorrect=null +var correct=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;c') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ -for (temp=0;temp") } win2.document.write('
') -win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.
") +win2.document.write("
Note: The solutions in red are the ones to the questions you had correctly answered.
") win2.document.close() } diff --git a/src/lab/exp10/results.htm b/src/lab/exp10/results.htm index 095bcfe..7a2d48e 100644 --- a/src/lab/exp10/results.htm +++ b/src/lab/exp10/results.htm @@ -22,7 +22,7 @@

- The questions you got wrong: + The questions you got correct:

@@ -51,14 +51,14 @@ } -var incorrect=results[parse].split("=") -incorrect=incorrect[1].split("/") -if (incorrect[incorrect.length-1]=='b') -incorrect="" -document.result[0].value=totalquestions-incorrect.length+" out of "+totalquestions -document.result[2].value=(totalquestions-incorrect.length)/totalquestions*100+"%" -for (temp=0;temp diff --git a/src/lab/exp8/quizconfig.js b/src/lab/exp8/quizconfig.js index f88620b..81083f5 100644 --- a/src/lab/exp8/quizconfig.js +++ b/src/lab/exp8/quizconfig.js @@ -18,7 +18,7 @@ correctchoices[4]='a' /////Don't edit beyond here////////////////////////// function gradeit(){ -var incorrect=null +var correct=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;c') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ -for (temp=0;temp") } win2.document.write('
') -win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.
") +win2.document.write("
Note: The solutions in red are the ones to the questions you had correctly answered.
") win2.document.close() } diff --git a/src/lab/exp8/results.htm b/src/lab/exp8/results.htm index 095bcfe..7a2d48e 100644 --- a/src/lab/exp8/results.htm +++ b/src/lab/exp8/results.htm @@ -22,7 +22,7 @@

- The questions you got wrong: + The questions you got correct:

@@ -51,14 +51,14 @@ } -var incorrect=results[parse].split("=") -incorrect=incorrect[1].split("/") -if (incorrect[incorrect.length-1]=='b') -incorrect="" -document.result[0].value=totalquestions-incorrect.length+" out of "+totalquestions -document.result[2].value=(totalquestions-incorrect.length)/totalquestions*100+"%" -for (temp=0;temp diff --git a/src/lab/exp9/quizconfig.js b/src/lab/exp9/quizconfig.js index 0ca48f3..e88f558 100644 --- a/src/lab/exp9/quizconfig.js +++ b/src/lab/exp9/quizconfig.js @@ -17,7 +17,7 @@ correctchoices[3]='a' /////Don't edit beyond here////////////////////////// function gradeit(){ -var incorrect=null +var correct=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;c') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ -for (temp=0;temp") } win2.document.write('
') -win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.
") +win2.document.write("
Note: The solutions in red are the ones to the questions you had correctly answered.
") win2.document.close() } diff --git a/src/lab/exp9/results.htm b/src/lab/exp9/results.htm index 095bcfe..7a2d48e 100644 --- a/src/lab/exp9/results.htm +++ b/src/lab/exp9/results.htm @@ -22,7 +22,7 @@

- The questions you got wrong: + The questions you got correct:

@@ -51,14 +51,14 @@ } -var incorrect=results[parse].split("=") -incorrect=incorrect[1].split("/") -if (incorrect[incorrect.length-1]=='b') -incorrect="" -document.result[0].value=totalquestions-incorrect.length+" out of "+totalquestions -document.result[2].value=(totalquestions-incorrect.length)/totalquestions*100+"%" -for (temp=0;temp