'; 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("What is Modern Colossus?", 1, //Wich answer is right. 0= first, 1= second etc. "George Washington", "The Statue of Liberty", "The Statue of John Times in New York"); quiz[1] = new makeQuestion("What was Rhodes?", 0, "capitol", "statue", "great building near sea"); quiz[2] = new makeQuestion("In what year the city fell into Persian hands?", 2, "120 B.C.", "332 B.C.", "340 B.C."); quiz[3] = new makeQuestion("The Colossus is the statue of...", 2, "President of America", "Zeus", "Helios"); quiz[4] = new makeQuestion("How tall is the statue?", 0, "110 feet", "100 feet", "150 feet"); quiz[5] = new makeQuestion("How much dues the statue weigh?", 0, "24 tons", "50 tons", "75 tons"); quiz[6] = new makeQuestion("How much does the Statue of Liberty wigh?", 1, "200 tons", "225 tons", "150 tons"); quiz[7] = new makeQuestion("How many years did the statue stood in harbor?", 2, "178 years", "42 years", "56 years"); quiz[8] = new makeQuestion("The Arabs...", 0, "sold the statue as scrap metal", "rebuilt the statue", "loved the statue"); quiz[9] = new makeQuestion("How many camels were needed to carry the statue?", 1, "2000", "900", "500"); // --> Take this quiz to test your knowledge of the Colossus of Rhodes!

Correct Quiz

Click here to start again