'; 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(4); quiz[0] = new makeQuestion("Which of the following best describes the purpose of an array?", // 1st question 2, // correct answer "to store a piece of information", // choice 0 "to store a list of information", // choice 1 "to organize code in a logical fashion", // choice 2 "to relate two pieces of information"); // choice 3 quiz[1] = new makeQuestion("What is the difference between a method and a function?", // 2nd question 0, // correct answer "a method is tied to an object", // choice 0 "a method\'s name isn't followed by parentheses", // choice 1 "a function doesn't contain any variables", //choice 2 "a function must be passed parameters"); quiz[2] = new makeQuestion("Which object does the document object branch off of in the JavaScript tree?", 3, "the forms object", "the navigator object", "the window object", "it doesn\'t branch off an object"); quiz[3] = new makeQuestion("Which of the following browsers does not support JavaScript?", 3, "Internet Explorer 3.01 for Windows 95", "Navigator 2.0 for UNIX", "Internet Explorer 3.0 for the Mac", "Navigator 2.02 for OS2 Warp"); // --> The Quiz

Correct Quiz