Spy Catcher is an on-line multiple choice quiz that asks the
user five questions about the
At the end of the quiz the final score is displayed:
20 - 25 = Too good to be true
15 – 19 = Intentionally missed a few to throw us off
10 – 14 = Maybe private school, worth following
0 –
9 = Definitely a product of the
Each question displays four possible answers. For example:
1A. What is the Capitol of Sacramento?
A.
B.
C. Japan
D. None of the above
The make-up question might be a bit easier:
1B. Who was the president of the
A. Jefferson Davis
B. Arnold Schwarzenegger
C. Abe Lincoln
D. Abe Simpson
There are several ways to design Spy Catcher. The simplest idea is to have one .html page for each question. Thus question1a.html, question1b.html, etc.
Each page contains a form. Use hidden fields within the form to hold the correct answer, the name of the page containing the make-up question, if any, and the name of the page containing the next question to be asked. We could make things more general by also including the value of the question as a hidden field.
All questions send the user's answer to a dispatcher page (dispatcher.jsp). This page uses the implicit session object to keep track of the user's score.