'); spawn.document.writeln(''); spawn.document.writeln('

Question ' + (questionIndex + 1) + '

'); spawn.document.writeln('
'); spawn.document.writeln('' + question + '

'); spawn.document.writeln('' + optionA + '
'); spawn.document.writeln('' + optionB + '
'); spawn.document.writeln('' + optionC + '
'); spawn.document.writeln('' + optionD + '
'); spawn.document.writeln('
'); spawn.document.close(); // Increment variables for the next question questionIndex++; preventer++; } function gradeTest() { // Increment the variables for the last time questionIndex++; preventer++; // Compare student answers with correct answers for (var i = 0; i < killers.length; i++) { if (keeper[i] == answers[i]) { correctAnswers++; } } // Determine a ranking according to number of corrrect answers jsAbility = performance[Math.ceil((correctAnswers/killers.length) * performance.length - 1)]; // Print the test results printResults(); } // Print the questions, answer options, and other info function printResults() { spawn.document.clear(); spawn.document.open(); spawn.document.writeln(''); spawn.document.writeln('JavaScript Brain Masher Results'); spawn.document.writeln(''); spawn.document.writeln(''); spawn.document.writeln('

You scored ' + correctAnswers + '/' + killers.length + ' correctly.

'); spawn.document.writeln('Ranking: ' + jsAbility + '
'); spawn.document.writeln('

Here is how you scored:

'); for (var i = 0; i < killers.length; i++) { spawn.document.writeln('\n\nQuestion ' + (i + 1) + '
'); spawn.document.writeln(killers[i].substring(0, killers[i].indexOf('$$'))); spawn.document.writeln('

\na. ' + killers[i].substring((killers[i].indexOf('$$') + 2), killers[i].indexOf('%%')) + '
'); spawn.document.writeln('b. ' + killers[i].substring(killers[i].indexOf('%%') + 2, killers[i].indexOf('^^')) + '
'); spawn.document.writeln('c. ' + killers[i].substring(killers[i].indexOf('^^') + 2, killers[i].indexOf('&&')) + '
'); spawn.document.writeln('d. ' + killers[i].substring(killers[i].indexOf('&&') + 2, killers[i].length) + '
'); // Determine if the student answered each question appropriately, and display accordingly if (keeper[i] == answers[i]) { spawn.document.writeln('You answered this correctly.\n


'); } else { spawn.document.writeln('The correct answer is: ' + answers[i] + '\n


'); } } spawn.document.writeln('\n\n'); spawn.document.close(); } function busted() { alert('Sorry, you only get one shot at each question.'); spawn.history.forward(); spawn.focus(); } // -->
Start

Entrance
Map
Sign Guestbook
View Guestbook

The Great Phasmid Quiz

How well do you know your phasmids?

What do you know about the different species?

How familiar are you with their life cycle?

Start the quiz!

Instructions
Test your knowledge with our quiz! All questions will be shown in a new window. You can click on this window at any time to look up the answer in Hidden Beauty.
When you have answered all the questions you will be shown the correct anwers.

Aktualisiert: Mon, 14. Aug 2000 / Team: C003908