Quiz Master
Quiz Master
COLLEGE
BADLAPUR (W)
Quiz master
ROLL NO : 15137965
CLASS : XII
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 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.
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
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.
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
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.
8
Software AND Hardware
Requirements
#SOFTWARE SPECIFICATION
Database : MySQL
Languages : Python
#HARDWARE SPECIFICATION
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:
● User friendly
● Responsive design
● It saves paper
10
#SOURCE CODE IN PYTHON
import sys
import mysql.connector
import random
passwd="root",database= "quiz")
mycursor=mydb.cursor()
def Home():
f=1
while f!=3:
print("Welcome to Quiz")
print("********************")
print("3. Exit")
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'
print("***********************")
ans=0
while ans==0:
if op==1:
ans=op1
elif op==2:
ans=op2
elif op==3:
ans=op3
elif op==4:
ans=op4
else:
12
mycursor.execute("Select * from question")
data=mycursor.fetchall()
qid=(mycursor.rowcount)+1
mydb.commit()
Home()
def Quiz():
print("***********************")
data=mycursor.fetchall()
rc=mycursor.rowcount
l=[]
while len(l)!=noq:
x=random.randint(1,rc)
if l.count(x)>0:
l.remove(x)
else:
l.append(x)
c=1
score=0
for i in range(0,len(l)):
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:
if choice=='A' or choice=='a':
ans=ques[2]
ans=ques[3]
ans=ques[4]
ans=ques[5]
else:
if ans==ques[6]:
print("Correct")
score=score+1
else:
Home()
Home()
14
#OUTPUT SCREEN
15
#MYSQL TABLE
#LIMITATIONS
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
17