'; 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 four question objects... quiz = new makeArray(8); quiz[0] = new makeQuestion("About when was the Missouri River formed?", // 1st question 3, // correct answer "1,000 years ago", // choice 0 "1,000,000 years ago", // choice 1 "2,000,000,000 years ago", // choice 2 "20 million years ago"); // choice 3 quiz[1] = new makeQuestion("What was the Missouri River used for in the 1800's and 1900's?", // 2nd question 0, // correct answer "transportation", // choice 0 "fishing", // choice 1 "irrigation", //choice 2 "all of the above"); quiz[2] = new makeQuestion("Who named the Missouri River?", 1, "George Washington", "Indians", "Thomas Jefferson", "Meriwether Lewis and William Clark"); quiz[3] = new makeQuestion("What city does the Missouri Riiver empty closest to?", 2, "Chicago", "Wichita", "St. Louis", "Kansas City"); quiz[4] = new makeQuestion("What year did Louis and Clark's expedition start?", 0, "1804", "1812", "1798", "1826"); quiz[5] = new makeQuestion("What was the name of the Shoshone Indian who helped them communicate with the Shoshone tribe?", 2, "Rockshet", "Red Cloud", "Sacagawea", "Swift Deer"); quiz[6] = new makeQuestion("When they thought they were at the Pacific Ocean where were they really?", 2, "Snake River", "Missouri River", "Columbia River", "Mississippi River"); quiz[7] = new makeQuestion("How long did it take for the expedition to arrive back in St. Louis?", 3, "32 months", "22 months", "44 months", "28 months"); quiz[8] = new makeQuestion("What fort was built on the Columbia River for their shelter in the winter?", 1, "Fort Osage", "Fort Clatsop", "Fort Mandan", "Fort Levanworth"); // -->

History Quiz

Correct Quiz