Quiz System
Quiz System
Quiz System
AIM:
To analyze and design a QUIZ System using UML (Unified Modeling Language)
diagram.
PROJECT SCOPE:
The QUIZ System is designed & developed to evaluate the competency of the person
taking the quiz.
PROBLEM STATEMENT:
Developing a quiz system which includes both the user and the administrator
wherein the administrator is privileged to prepare the quiz questions for the users based
on the selected category. The user is allowed to take the quiz by choosing the categories
displayed. The competency of the user is evaluated at the end by displaying the score
obtained by the user in the quiz that he undertook. The quiz system can be used to
evaluate the competency of the person taking the quiz.
ABSTRACT:
The administrator has to login to the system and enter the questions according to
the quiz category.The quiz database is integrated with the front end.The user can choose
the category in which he would like to take a quiz.The score of the user is calculated and
displayed at the end of the quiz session.
MODULAR DESCRIPTION:
1. Administrator Login
In the login form the Administrator enters the username and password. The system
verifies the Administrator and grants access.Verify the username and password that is
given by the administrator.If the username and password match, the system grants access
to the Administrator
2. Adding Questions
After verifying password the Administrator chooses the category and enters the
questions into the database. The Administrator chooses the category under which he
wants to enter the questions.The Administrator enters the questions, options and
corresponding answers.The questions, options and answers are updated in the database.
In this form the user takes up the quiz and answers are evaluated comparing the
options with the correct ones and the score is displayed. The user selects the quiz
category. The user enters the options for the questions.The score is evaluated and
displayed.
UML DIAGRAMS
Login
Administrator
Entering questions
System1
Quiztaker
quiz
SEQUENCE DIAGRAM:
1. ADMINISTRATOR LOGIN
displayloginform( )
enter(username,passwd,cat1)
send(username,passwd,cat1)
verify(username,passwd)
validated( )
displayquestionform( )
2. ADDING QUESTIONS:
: adm in : G UI : s y s te m : c o nt ro l : D a ta b a s e
d is p la y c a te g o ry ( )
s e le c tc a te go ry (c a t1 )
ge tm o du le (c a t1)
s e n dm o d u le (c a t 1)
d is p la y form (c at1 )
s e nd (q u e s tio n , o pt io n, a ns w e r)
u p d a te ( )
rec o rd s a ve d ( )
rec o rd s a ve d ( )
d is p la y m s g ("re c o rd s a ve d " )
3. USER TAKING THE QUIZ:
displayc at( )
sendrequest( )
searchDB ( )
searc h( )
retrieve( )
: sc ore
s endquestions( )
display_ques tions( )
select_option( )
send_option( )
check_option( )
com pare_option( )
update_sc ore( )
4: verify(username,passwd)
2: enter(username,passwd,cat1) 3: send(username,passwd,cat1)
: admin : GUI : system
1: displayloginform( ) 5: validated( )
6: displayquestionform( )
2. ADDING QUESTIONS:
2: selectcategory(cat1)
6: enter(question,option,answer)
: admin : GUI
3: getmodule(cat1)
1: displaycategory( ) 7: send(question,option,answer)
5: displayform(cat1)
13: displaymsg("recordsaved")
4: sendmodule(cat1)
12: recordsaved( )
: system
10: update( )
11: recordsaved( )
8: sendtodb(question,option,answer)
: Database : control
9: update(question,option,answer)
3.
4. TAKING THE QUIZ:
: question
13: check_option( )
12: send_option( )
14: compare_option( )
2: selectcategory(cat1)
11: select_option( ) 3: fetchquestions( ) 4: sendrequest( )
: GUI : System : control
: User
5: searchDB( )
15: update_score( )
6: search( )
: score : database
ACTIVITY DIAGRAM:
1. LOGIN
check if
correct?
/ No / Yes
Select category
No
Update
database
Last Question?
Yes
3. TAKING THE QUIZ
GUI Displays
categories
User selects
the categories
Display the
question.
User answering
the quetions
If Answer is
correct?
/ yes / no
/ No
update score in
DB
If end of
questions?
/ Yes
Display score
RESULT:
Thus the UML diagrams for library management system was analyzed and designed
and the output was verified correctly.