Download presentation
Presentation is loading. Please wait.
1
Server-based Quiz Program
2
Three-Tier Internet Project Server-side Language (eg JAVA Server Pages) Data Base (eg MS Access with SQL) Tomcat (or Apache server) Simple Javascripts The project can be done in a team of two persons. You must indicate Who is on your team. You must indicate relative percent of roles. Suggested extensions are indicated. You can do variations on this project – but you must check with me to get approval. The sky's the Limit on the variations.
3
Case 1Case 2Case 3Case 4 Logon Page JSP Start quiz page Makes question Screen users Grades question Grades quiz name & password Prototype Overview
4
Case 1Case 2Case 3Case 4 Logon Page Start Quiz Page Next Question Page Grade question Grade quiz more end of quiz Report Page submit Program Dynamics generates html generates html generates html database screen users JSP request
5
8.Develop random arithmetic quiz that Logs questions and user's errors. Make enhancements. Possible ideas are: 1. Allow Time Limits on user responses - by embedding Javascript time function in Html sent to user that submits answer automatically after some delay. 2. Allow multiple quizzes to be selected. Allow the number of questions to vary with the quiz. 3. Allow multiple users with names and passwords - observe current multi-user anomaly. 4.Allow administrator creation of new quizzes so quizzes can be added by just modifying some tables - without much code modification. 5. Enhance quiz questions - images, etc. Improve look of page. Replace answer input fields with radio buttons for quiz choices. Be able to turn tracing On or Off. 6.Use cookies or session id's to facilitate quiz interaction. 7. Randomly select from large set of questions but avoid repeating random questions.
6
Following slides only Approximately reflect Prototype and Project
7
Name Password Logon
8
Name Password Logon Server program 1. Checks User table in database for permissions. Users table 2. Creates entry in User-Test table for user, score, etc 3. Gets question from Question table. User-Test table Questions table 4. Sends question to user.
9
User-name User-password Users table User-Test table Questions table Question-Number Question-string Question-answer Answer-choice -AAnswer-BAnswer-DAnswer-C Current-question-number User-Answer-to-1 Score-so-far-on-Test User-Answer-to-2... User-Answer-to-10 User-name User-password Test-Number Database Tables
10
Server program 1.Gets answer from user 2. Checks answer against Question table 3. Logs answer & score-so-far in User-Test table User-Test table Question table 4. Sends result to user. The question is: Who is the First President of U.S.? Submit answer Answer-1Answer-2Answer-3Answer-4 (and: question number & user identity as hidden html data) Remember The server-side program does not automatically remember you !
11
Enhancement Issues The issue here to let the server reject answers which are submitted after a prescribed Time-delay: they count as wrong answers. This could be achieved by sending a Javascript-based timer to the client. Recognizing & Enforcing Time Limit violations:
12
Scenarios of Use
13
1. User accesses home page Name Password Logon Name Password Logon John Doe magic007 2. User logs on & submits info:
14
3. System verifies user data Name Password John Doe Magic007 Users table User-name User-password Harry Byrd 000RRRQQQ John Doe Magic007
15
4. If valid user, system accesses User-Test Table and the Question table 1: Who is the First President of U.S.? Submit answer Lincoln George III Washington Peter rabbit Question table Num Question Choices Answer......... Sends Question #1 to client User-Test table Next-Q: 1 User-Name User-Password Res-1 Res--2... Ans-1 Ans-2... Score-so-far Results logged here
16
6. System checks & logs result 5. User submits answer User-Test table Next-Q: 2 Res-1: 0........ User-Name User-Password Ans-1: 1....... Score-so-far: 0 pts Question table Question Choices Answer...... 3 1: Who is the First President of U.S.? Submit answer Lincoln George III Washington Peter Rabbit 12341234
17
Server Also sends hidden data in HTML so server can "remember" what's up: Logs result by updating database tables Sends next question to user User name User password Current question number
18
Test taker - Bert Data Base of Test Questions Apache Server 3 Tier Architecture - Project Test Taker - Harry Uses: Java Server Pages SQL Access database HTML Javascript
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.