'; for (var i = 0; i < quiz.length; i++) { if (quiz[i].isCorrect()) correct++; } var score = Math.round((correct / quiz.length) * 100); correctPage += 'Score: ' + score + ' %'; if (correct < quiz.length) { correctPage += ifWrong; for (var i = 0; i < quiz.length; i++) { if (!quiz[i].isCorrect()) { correctPage += (i + 1) + '. ' + quiz[i].userChoices[quiz[i].correctAnswer] + '
'; } } } else correctPage += ifAced; correctPage += ''; correctwin = window.open ('', '', 'height=300,width=300,scrollbars=yes'); if (correctwin.opener == null) correctwin.opener = window; correctwin.location = 'javascript:opener.correctPage'; } // Message to display if quiz is aced. var ifAced = "

Well done, all the answers are correct!

"; // Message to display if any are wrong. var ifWrong = "

Here are the correct answers to the questions you got wrong:

"; // Create four question objects... quiz = new makeArray(8); quiz[0] = new makeQuestion("The city of Alexandria was founded by the Macedonian conqueror Alexander the Great in", 0, //Wich answer is right. 0= first, 1= second etc. "332 B.C.", "323 B.C.", "223 B.C."); quiz[1] = new makeQuestion("The lighthouse stood for", 2, "450 years", "76 years", "1,500 years"); quiz[2] = new makeQuestion(" In the fall of 1994 a team of archaeological scuba divers claimed that they had found", 0, "the remains of the lighthouse", "a ship that was carrying the mirror from the lighthouse", "some ancient scrolls about the lighthouse"); quiz[3] = new makeQuestion("The lighthouse was built on the island of", 0, "Idos", "Pharos", "Babylon"); quiz[4] = new makeQuestion("The lighthouse was about", 0, "450-600 feet high", "390 feet high", "about 650 feet high"); quiz[5] = new makeQuestion("Ptolemy authorized the building of the Pharos in", 1, "20 A.D.", "290 B.C.", "90 B.C."); quiz[6] = new makeQuestion("The lighthouse's designer ", 0, "was Sostrates of Knidos", "in unknown", "Aristoteles"); quiz[7] = new makeQuestion("The building was constructed of", 0, "marble blocks", "bricks", "granite"); // --> Take this quiz to test your knowledge of the Lighthouse of Alexandria!

Correct Quiz

Click here to start again