'; 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(10); quiz[0] = new makeQuestion("Where were the Olympic games?", 1, //Wich answer is right. 0= first, 1= second etc. "in Estonia", "in Olympia", "in America"); quiz[1] = new makeQuestion("When was the temple of Zeus built?", 0, "456 B.C.", "471 B.C.", "459 B.C."); quiz[2] = new makeQuestion("Who was the main designer?", 2, "Youglain", "Gramtinas", "Libon of Elis"); quiz[3] = new makeQuestion("Who was the sculptor of the Statue of Zeus?", 0, "Phidias", "Doricanus", "Filapus"); quiz[4] = new makeQuestion("The statue was...", 1, "made of gold", "40 feet tall", "made by 300 men"); quiz[5] = new makeQuestion("Who was Nike?", 0, "the goodness of victory", "the owner of sports clothes company", "the god of love"); quiz[6] = new makeQuestion("Are any statues from the temple survived?", 2, "Yes", "No", "Little bit"); quiz[7] = new makeQuestion("When were the first archaeological work on the Olympia site?", 1, "in 1845", "in 1829", "in 1934"); quiz[8] = new makeQuestion("What was found in 1950 in Olympia?", 1, "food", "the workshop of Phidias", "marble"); quiz[9] = new makeQuestion("Is there anything remained in Olympia?", 0, "few columns", "Nothing", "the Statue of Zeus"); // --> Take this quiz to test your knowledge of the Statue of Zeus!

Correct Quiz

Click here to start again