Create an online multiple choice quiz, JAVA Programming

Create an online multiple-choice quiz using JSP/Servlets technology. The quiz should draw questions from an array of predefined questions (at least fifteen). You should use a meaningful topic for your questions and there should be no repeated questions/answers. Questions should be implemented based on a class Question as follows:

  • 2 Question constructors (default and non-default)
  • Private fields


1) Description (String)

2) Answers (String array or ArraList of four elements)

3) CorrectAnswer (integer that represent the position of the correct answer in the array/ArrayList)

4) Difficulty (integer that can have values of 1 - easy, 2 - average, or 3 - hard)

  • get/set methods for all the fields


Every question should be displayed in a different page and proper navigation should be provided for users to move through questions of the quiz. Quiz should randomly pick 5 questions from the array of questions but they should all be different questions. 

The last page of the quiz should display the score of the quiz both as a "percentage" and "x out of 5" format. 

 1.  Quiz should keep track of how many users have taken the quiz since the server  has been restarted and how many users are currently taking the quiz. This  information should be displayed for all users to see.

2.  Quiz should contain at least one question from each difficulty levels (1 - easy, 2 - average, 3 - hard)

3.  If the user scores less than 60%, on the last page of the quiz, they should be given an option to retake the quiz. 

4.  If they score 60%, "You have barely passed the test." message should be displayed.

5.  If they score 80%, "Congratulations! You almost got a perfect score." message should be displayed.

6.  If they score 100%, "You are a genius!" message should be displayed.

Posted Date: 3/1/2013 2:27:29 AM | Location : United States

Related Discussions:- Create an online multiple choice quiz, Assignment Help, Ask Question on Create an online multiple choice quiz, Get Answer, Expert's Help, Create an online multiple choice quiz Discussions

Write discussion on Create an online multiple choice quiz
Your posts are moderated
Related Questions
there is a pebble merchant. he sells the pebbles,that are used for shining the floor.his main duty is to take the length of the room side but he sometines mistakes doing that and m

In this exercise, I want you to generate password based on random number generator. Develop an application that keeps track of the URL, username and password. I have listed few st

What is the basic difference among Publish Subscribe model and P2P model? Ans) Publish Subscribe model is typically used in one-to-many situation. It is unreliable but very quic

EJB 2.0 has the additional advantages over the EJB 1.1 given below 1. Local interfaces : These are beans that can be needed locally, that means by the same Java Virtual Machi

Due to impedance mismatch between relational technology and object you need to understand the progress of mapping classes (objects) and their relationships to tables and relationsh

Explain operator precedence in java ? It's probable to combine multiple arithmetic expressions in one statement. For example the subsequent line adds the numbers one by five:

What is difference between time slicing and preemptive scheduling? Differences between preemptive and time scheduling are: In case of Preemptive scheduling the highest prior

What is an abstract class? Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie. you may not

AskWrite an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a message could be “I love

This work assesses the following Outcomes: • Build robust, secure distributed systems using advanced programming techniques Use RMI to build a distributed application accessing