'; 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, you aced it.

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

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

"; // Create question objects... quiz = new makeArray(10); quiz[0] = new makeQuestion('How many electrons does an hydrogen atom has?', 1, '0', '1', '2', '3'); quiz[1] = new makeQuestion('What method do you use to separate salt from a salt solution?', 0, 'Evaporation', 'Condensation', 'Crystallisation', 'Fractional Distillation'); quiz[2] = new makeQuestion('Which of the following is an odd one out?', 2, 'Cats', 'Spiders', 'Ants', 'Mouse'); quiz[3] = new makeQuestion('If an atom has 10 neutrons, how many protons does it have?', 0, '10', '20', '30', '40'); quiz[4] = new makeQuestion('A car travel 5km due east and 2km due west. What is its displacement?', 2, '7km due east', '10km due east', '3km due east', '3km due west'); quiz[5] = new makeQuestion('A feather and a ball-bearing fall freely from rest in a vacuum. Which one of the following statements correctly describes their subsequent motion?', 1, 'They both travel with constant velocity.', 'They both travel with the same accerleration.', 'The ball-bearing accelerate but the feather does not.', 'The ball-bearing reaches a higher velocity than the feather.'); quiz[6] = new makeQuestion('Calculate the density of a material with a volume of 500 cubic cm and a mass of 13950g?(Calculator is provided at the bottom of the page.)', 0, '27.9g/cm^3', '389205g/cm^3', '13450g/cm^3', '14450g/cm^3'); quiz[7] = new makeQuestion('Which of the following is the odd one out?', 2, 'Iron', 'Diamond', 'Steel', 'Quartz'); quiz[8] = new makeQuestion('Which of the following would you use to measure the diameter of a very thin piece of wire?', 3, 'Vernier calipers', 'A measuring tape', 'A metre rule', 'Micrometer screw gauge'); quiz[9] = new makeQuestion('How many colour(s) is/are light made up of?', 1, '1', '7', '0', 'Infinite'); // -->

Science Quiz

Email us (sorry, link disabled)