'); spawn.document.writeln(''); spawn.document.writeln(''); spawn.document.writeln('

QUESTION ' + (questionIndex + 1) + '

'); spawn.document.writeln('
'); spawn.document.writeln('' + question + '

'); spawn.document.writeln('' + optionA + '
'); spawn.document.writeln('' + optionB + '
'); spawn.document.writeln('' + optionC + '
'); spawn.document.writeln('' + optionD + '
'); spawn.document.writeln('
'); spawn.document.close(); // Increment variables for the next question questionIndex++; preventer++; } function gradeTest() { // Increment the variables for the last time questionIndex++; preventer++; // Compare student answers with correct answers for (var i = 0; i < killers.length; i++) { if (keeper[i] == answers[i]) { correctAnswers++; } } // Determine a ranking according to number of correct answers (not sure how to work it for none correct) jsAbility = performance[Math.ceil((correctAnswers/killers.length) * (performance.length - 1))]; //this original formula is not correct jsAbility = performance[Math.ceil((correctAnswers/killers.length) * performance.length - 1)]; // Print the test results printResults(); } // Print the questions, answer options, and other info function printResults() { spawn.document.clear(); spawn.document.open(); spawn.document.writeln(''); spawn.document.writeln('Memories of Downtown Nashville'); spawn.document.writeln(''); spawn.document.writeln(' '); spawn.document.writeln('
'); spawn.document.writeln('
'); spawn.document.writeln('
Quiz Results

'); spawn.document.writeln('

You scored ' + correctAnswers + '/' + killers.length + ' correctly.

'); spawn.document.writeln('

' + jsAbility + '

'); spawn.document.writeln(''); spawn.document.writeln('

Here is how you scored:

'); for (var i = 0; i < killers.length; i++) { spawn.document.writeln('\n\n
Question ' + (i + 1) + '

'); spawn.document.writeln(killers[i].substring(0, killers[i].indexOf('$$'))); spawn.document.writeln('

\n a. ' + killers[i].substring((killers[i].indexOf('$$') + 2), killers[i].indexOf('%%')) + '
'); spawn.document.writeln('b. ' + killers[i].substring(killers[i].indexOf('%%') + 2, killers[i].indexOf('^^')) + '
'); spawn.document.writeln('c. ' + killers[i].substring(killers[i].indexOf('^^') + 2, killers[i].indexOf('&&')) + '
'); spawn.document.writeln('d. ' + killers[i].substring(killers[i].indexOf('&&') + 2, killers[i].length) + '
'); // Determine if the student answered each question appropriately, and display accordingly if (keeper[i] == answers[i]) { spawn.document.writeln('
You are right! ' + describe[i] + '\n


'); } else { spawn.document.writeln('
Oops. ' + describe[i] + '\n



'); } } spawn.document.writeln('
Would you like to retake the quiz?




'); spawn.document.writeln('\n\n'); spawn.document.close(); } function busted() { alert('Sorry, you only get one try at each question.'); spawn.history.forward(); spawn.focus(); } //-->
Memories of Nashville
A Real Blast from the Past!
Nashville Public Television

Take a Quiz

Hotel restaurant famous for its Christmas dinners

Which hotel restaurant was famous for its
Christmas dinners, which included such entrees
as Leg of Cumberland Mountain Black Bear
and Tennessee Opossum?

TAKE A QUIZ

 

 
 

 

© Nashville Public Television