QUIZ SYSTEM

August 16, 2018 | Author: Khaiser Rafique | Category: User (Computing), Password, Databases, Computer Network Security, Software
Share Embed Donate


Short Description

Download QUIZ SYSTEM...

Description

EX.NO:

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 qu iz 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 e nter 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.

3. User taking the quiz. 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 qu iz 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

: admin

: GUI

: system

displayloginform( )

enter(username,passwd,cat1)

send(username,passwd,cat1) verify(username,passwd)

validated( )

displayquestionform( )

2. ADDING QUESTIONS:

: a dm in

: G UI

: s y s te m

: c o n t ro l

: D a ta b a s e

dis play c atego ry( ) selectcategory(cat1) g e tm o d u le (ca t 1 )

se ndm odule(c at1) disp layform (c at1)

e n te r(q u e stio n ,o p tio n ,a n swe r) se n d (q u e stio n , o p tio n ,a n s we r) se n d to d b (q u e s tio n ,o p t ion ,a n s we r)

u p d a te (q u e stio n ,o p tio n ,a n s we r)

u p d a te ( ) rec ord sa ved ( )

re co rd sa ve d ( )

disp laym sg("rec ords aved" )

3. USER TAKING THE QUIZ:

: User 

: GUI

: question

: System

: control

: databas e

displaycat( ) selectcategory(cat1) fetchquestions( ) sendrequest( )

searchDB( )

search( )

retrieve_questions_set( )

retrieve( )

sendquestions( )

: score

display_questions( )

select_option( ) send_option( ) check_option( ) compare_option( )

update_score( )

display_next_ques( )

COLLABORATION DIAGRAM: 1. LOGIN: 4: verify(username,passwd)

2: enter(username,passwd,cat1)

3: send(username,passwd,cat1) : GUI

: admin 1: displayloginform( ) 6: dis playquestionform( )

: system 5: validated( )

2. ADDING QUESTIONS: 2: selectcategory(cat1) 6: enter(question,option,answer) : GUI

: admin

3: getmodule(cat1) 7: send(question,option,answer)

1: displaycategory( ) 5: displayform(cat1) 13: displaymsg("recordsaved")

4: sendmodule(cat1) 12: recordsaved( ) 10: update( )

: system

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( ) : GUI

: User  1: displaycat( ) 10: display_questions( ) 16: display_next_ques( )

4: sendrequest( )

3: fetchquestions( ) : System

: control 8: retrieve( )

9: sendquestions( )

7: retrieve_questions_set( ) 5: searchDB( )

15: update_score( ) 6: search( ) : score

: database

ACTIVITY DIAGRAM: 1. LOGIN

Get user name & passwd and category from admin

check if  correct?

/ No

/ Yes

Display username and password is correct Display username & Passwd is wrong Allow the admin to enter the questions

2. ADDING THE QUESTION

Verify the username & password

Select category

Get the question

Get the options

Get the answer 

No Update database

Last Question?

Yes

3. TAKING THE QUIZ

GUI Displays categories User selects the categories

Fetch the questions according to category from DB

Display the question.

User answering the quetions

If Answer is correct? / yes

/ no

No change in Score

Increase the Score / 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.

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF