|
~PS~ Myth Quiz
");
var Results_As_Percentage = Math.round(100 * (NumRadioCorrect / NumRadio));
if (NumRadio != 0) {
document.writeln("");
document.writeln("" + Results_As_Percentage + "% (" + NumRadioCorrect + " out of " + NumRadio + " correct) ");
document.writeln(" | ");
document.writeln("");
document.writeln("The questions marked with symbol have not been graded. ");
document.writeln(" | ");
document.writeln(" |
");
document.writeln(" A: 100 - 90 (You're a Myth ace! Keep up the hard work, play strong, and play proud!) ");
document.writeln(" B: 89 - 80 (You're indeed knowledgable of Myth, but there are many out there who still know more than you.) ");
document.writeln(" C: 79 - 70 (You've adapted yourself to the foundations of Myth, but you still have much to learn. Keep practicing!) ");
document.writeln(" D: 69 - 60 (You still need a lot more work to tangle with the Myth gurus. Frequent Myth more often and learn the tricks of the trade.) ");
document.writeln(" F: 59 or less (And here I thought Myth had no more newbs left....)
");
}
var QuesPtr = 0;
var AnsPtr = 0;
var RefPtr = 0;
var RspPtr = 0;
var ColPos = 0;
var NxtColPos = 0;
var NumOfQuesAns = 0;
var AnswerLetter = "";
for (QuesPtr = 0; QuesPtr < NumOfQues; QuesPtr++) {
RspPtr = AnsPtr;
NumOfQuesAns = 0;
ColPos = QT[QuesPtr].indexOf(":");
RefPtr = QT[QuesPtr].substring(0, ColPos);
NxtColPos = QT[QuesPtr].indexOf(":", ColPos + 1);
NumOfQuesAns = QT[QuesPtr].substring(ColPos + 1, NxtColPos);
if (NumOfQuesAns > 1) {
if (UA[QuesPtr] == CA[QuesPtr]) {
document.writeln(" | " + (QuesPtr + 1) + ". | ");
if (RefPtr != "*") {
document.writeln("");
document.writeln("| " + RT[RefPtr - 1] + " | ");
document.writeln("| R-" + RefPtr + " " + RD[RefPtr - 1] + " | ");
document.writeln(" ");
}
document.writeln(QT[QuesPtr].substring(NxtColPos + 1) + " ");
} else {
document.writeln(" | " + (QuesPtr + 1) + ". | ");
if (RefPtr != "*") {
document.writeln("");
document.writeln("| " + RT[RefPtr - 1] + " | ");
document.writeln("| R-" + RefPtr + " " + RD[RefPtr - 1] + " | ");
document.writeln(" ");
}
document.writeln(QT[QuesPtr].substring(NxtColPos + 1) + " ");
}
for (var i = 1; i <= NumOfQuesAns; i++) {
AnswerLetter = "%" + (40 + i);
if (i == UA[QuesPtr]) {
document.writeln(" | " + unescape(AnswerLetter) + ". | " + AT[AnsPtr] + "
| ");
} else {
if (i == CA[QuesPtr]) {
document.writeln("| " + unescape(AnswerLetter) + ". | " + AT[AnsPtr] + "
| ");
} else {
document.writeln("| " + unescape(AnswerLetter) + ". | " + AT[AnsPtr] + "
| ");
}
}
AnsPtr++;
} //FOR
if (UA[QuesPtr] == 0) { //THEY DID NOT ANSWER
if (GRe[QuesPtr] != "") {
document.writeln("
" + GRe[QuesPtr]);
}
} else { //THEY DID ANSWER
if (Re[RspPtr + UA[QuesPtr] - 1] != "") {
document.writeln("
" + Re[RspPtr + UA[QuesPtr] - 1]);
} else if (GRe[QuesPtr] != "") {
document.writeln("
" + GRe[QuesPtr]);
}
}
} else {
document.writeln(" | " + (QuesPtr + 1) + ". | " + QT[QuesPtr].substring(NxtColPos + 1) + "
");
document.writeln("YOUR ANSWER: " + UA[QuesPtr] + " ");
if (GRe[QuesPtr] != "") {
document.writeln("
The suggested answer is " + AT[AnsPtr] + " " + GRe[QuesPtr]);
} else {
document.writeln("
The suggested answer is " + AT[AnsPtr] + "");
}
AnsPtr++;
}
document.writeln(" |
"); //CLOSE QUESTION AND ANSWERS
} //FOR
if (navigator.appName == "Microsoft Internet Explorer") {
if (navigator.appVersion.substring(0, 1) >= 4) {
document.writeln("Retake Test ");
} else if (navigator.appVersion.substring(0, 1) >= 2) {
document.writeln("");
}
} else if (navigator.appName == "Netscape"){
if (navigator.appVersion.substring(0, 1) >= 4) {
document.writeln("Retake Test ");
} else if (navigator.appVersion.substring(0, 1) >= 3) {
document.writeln("Retake Test ");
}
}
document.writeln("
");
if (NumRadio != 0) {
confirm("The test has been graded. You correctly answered " + Results_As_Percentage + "% of the questions.");
} else {
confirm("The test has been graded. You may now review your answers.");
}
document.close();
}
// -->
|
|
|