0% found this document useful (0 votes)
21 views17 pages

Quiz Master

Uploaded by

TeamNGUlaserFTW
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views17 pages

Quiz Master

Uploaded by

TeamNGUlaserFTW
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

HOLY WRIT HIGH SCHOOL & JR.

COLLEGE
BADLAPUR (W)

ACADEMIC YEAR :2024-25


PROJECT REPORT ON

Quiz master
ROLL NO : 15137965

NAME : CHAITANYA AJIT MEHER

CLASS : XII

SUBJECT : COMPUTER SCIENCE

SUB CODE : 083

PROJECT GUIDE: Mr. Nagesh shukla

1
PGT (CS)

2
ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any project depends largely on
the encouragement and guidance of many others. I take this opportunity to
express my gratitude to the people who have been instrumental in the successful
completion of this project.

I express deep sense of gratitude to almighty GOD for giving me strength for
the successful completion of the Project.

I express my heartfelt gratitude to my parents for constant encouragement for


carrying out this project.

I gratefully acknowledge the contribution of the individuals who contributed


in bringing this project to this level and the people who continue to look after me
despite my flaws.

I express my deep sense of gratitude to our luminary Principal, Dr. D.K


Ghosal Sir, who has been continuously motivated and extended their helping
hand to us.

I also express my sincere thanks to the Academician, Vice Principal Sir, Mr.
Vikas Dalal, Holy Writ High School and Junior College, for their constant
encouragement and guidance provided during the making of this project.

My sincere thanks to Mr. Nagesh Shukla, Master-In-Charge, a guide, a


mentor and all above a friend, who critically reviewed my project and helped in
solving, each and every problem occurred during implementation of the project.

The Guidance and the support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I
am grateful for their constant support and help.

3
TABLE OF CONTENT

PAGE
SER DESCRIPTION
NO

01 BRIEF OVERVIEW OF PROJECT 5

02 SDLC - Waterfall Model 7

03 SOFTWARE AND HARDWARE 9


REQUIREMENTS
04 ADVANTAGES OF PROJECT 10

05 SOURCE CODE IN PYTHON 11

06 OUTPUT SCREEN 15

07 BIBLIOGRAPHY 17

4
Brief Overview OF Project
Quiz master is based on popular reality quiz shows where a player
has to answer some questions based on various themes. The player
gets to choose the correct answer from four different sets of options. If
the player chooses the right option he gets one point and proceeds. If
the option was wrong no points will be allotted.

Quiz Competitions are other events where similar mechanism is used.


Programming language used for this projects are python and MySQL.
Whole program is on python whereas database is stored on MySQL
server database. Upon running the program, Player has to enter
his/her name followed by starting the quiz. At the end total points
scored by the player are shown. Similar mechanism can be seen in
Quiz competitions too. Whether it be of school level or regional level.

5
Need Of Computerization
The use of computerized quizzes is highly recommended for any
instructor teaching a course that is either large in size (with a typical
lecture format) or that requires that students to engage in a
significant amount of assigned readings. Students appear to benefit
from the use of such computerized quizzes as they become actively
engaged in the course material and study with greater frequency
throughout the semester

Computerized settings can be designed to provide students with


immediate feedback regarding their quiz grades, and allow them to
take each quiz more than once to provide greater mastery of the
material. It may be helpful to limit the number of quiz attempts to
three.

Automatic, computerized grading and entry of each student’s highest


quiz grades into the course gradebook will generate significant time
savings for the instructor, and provide students with immediate
feedback on their quiz performance.
6
SDLC - Waterfall Model

 Requirement Gathering and analysis − All possible


requirements of the system to be developed are captured in
this phase and documented in a requirement specification
document.

 System Design − The requirement specifications from first


phase are studied in this phase and the system design is
prepared. This system design helps in specifying hardware and
system requirements and helps in defining the overall system
architecture.

 Implementation − With inputs from the system design, the


system is first developed in small programs called units, which
are integrated in the next phase. Each unit is developed and
tested for its functionality, which is referred to as Unit Testing.

7
 Integration and Testing − All the units developed in the
implementation phase are integrated into a system after
testing of each unit. Post integration the entire system is tested
for any faults and failures.

 Deployment of system − Once the functional and non-


functional testing is done; the product is deployed in the
customer environment or released into the market.

 Maintenance − There are some issues which come up in the


client environment. To fix those issues, patches are released.
Also to enhance the product some better versions are released.
Maintenance is done to deliver these changes in the customer
environment.

8
Software AND Hardware
Requirements
#SOFTWARE SPECIFICATION

Operating System: Windows 10/8/7

Platform : Python IDLE 3.7/3.8

Database : MySQL

Languages : Python

#HARDWARE SPECIFICATION

Processor : Dual core or above

Hard Disk : 40 GB

RAM : 1024 MB

9
Advantages OF Project
Present day everything is virtually presented.
Quiz master is very simple yet has attractive interface which makes quiz
completions easier and more enjoyable.
Specific recommendations for the use of Quiz Master can be made
including:

● To encourage students to engage in long-term learning, include

some of the individual online quiz questions on midterm and


final exams

● To deter student cheating, the order of quiz questions as well as

their multiple choice answers is randomized.

● User friendly

● Responsive design

● Automatically checks answers

● It saves paper

● Publishes score instantaneously after quiz ends

10
#SOURCE CODE IN PYTHON
import sys

import mysql.connector

import random

mydb=mysql.connector.connect(host= "localhost" ,user= "root",\

passwd="root",database= "quiz")

mycursor=mydb.cursor()

def Home():

f=1

while f!=3:

print("Welcome to Quiz")

print("********************")

print("1. Enter Questions")

print("2. Take Quiz")

print("3. Exit")

f=int(input("Enter your choice: "))

if f==1:

Question()

elif f==2:

Quiz()

elif f==3:

11
print("Exiting the Quiz")

mycursor.close()

mydb.close()

sys.exit();

else:

Home()

def Question():

ch='Y'

while ch=='Y' or ch=='y':

print("Welcome to Question Portal")

print("***********************")

q=input("Enter the question :")

op1=input("Enter the option 1 :")

op2=input("Enter the option 2 :")

op3=input("Enter the option 3 :")

op4=input("Enter the option 4 :")

ans=0

while ans==0:

op=int(input("Which option is correct answer (1,2,3,4) :"))

if op==1:

ans=op1

elif op==2:

ans=op2

elif op==3:

ans=op3

elif op==4:

ans=op4

else:

print("Please choose the correct option as answer")

12
mycursor.execute("Select * from question")

data=mycursor.fetchall()

qid=(mycursor.rowcount)+1

mycursor.execute("Insert into question values (%s,%s,%s,%s,%s,%s,%s)",(qid,q,op1,op2,op3,op4,ans))

mydb.commit()

ch=input("Question added successfully.. Do you want to add more (Y/N)")

Home()

def Quiz():

print("Welcome to Quiz portal")

print("***********************")

mycursor.execute("Select * from question")

data=mycursor.fetchall()

name=input("Enter your name :")

rc=mycursor.rowcount

noq=int(input("Enter the number of questions to attempt (max %s):"%rc))

l=[]

while len(l)!=noq:

x=random.randint(1,rc)

if l.count(x)>0:

l.remove(x)

else:

l.append(x)

print("Quiz has started")

c=1

score=0

for i in range(0,len(l)):

mycursor.execute("Select * from question where qid=%s",(l[i],))

ques=mycursor.fetchone()

print("--------------------------------------------------------------------------------------------")

13
print("Q.",c,": ",ques[1],"\nA.",ques[2],"\t\tB.",ques[3],"\nC.",ques[4],"\t\tD.",ques[5])

print("--------------------------------------------------------------------------------------------")

c+=1

ans=None

while ans==None:

choice=input("Answer (A,B,C,D) :")

if choice=='A' or choice=='a':

ans=ques[2]

elif choice=='B' or choice=='b':

ans=ques[3]

elif choice=='C' or choice=='c':

ans=ques[4]

elif choice=='D' or choice=='d':

ans=ques[5]

else:

print("Kindly select A,B,C,D as option only")

if ans==ques[6]:

print("Correct")

score=score+1

else:

print("Incorrect.. Correct answer is :",ques[6])

print("Quiz has ended !! Your final score is :",score)

input("Press any key to continue")

Home()

Home()

14
#OUTPUT SCREEN

15
#MYSQL TABLE

#LIMITATIONS

● Need to add questions first before playing quiz

● No permanent score board

16
Bibliography
SITES REFFERED FOR SOME BASIC INFORMATON:
1. https://www.scribd.com
2. https://www.slideshare.net
3. https://en.wikipedia.org
4. https://www.geeksforgeeks.org/

BOOKS REFFERED:
1. Introduction to Python (class:xi),Sumita Arora
2. Introduction to python(class:xii),Sumita Arora and Preeti
Arora

*. Also under the guidance of our subject teacher Mr.Nagesh shukla

17

You might also like