Quiz Master - Project
Quiz Master - Project
ROLL NUMBER :
CLASS : Ⅻ
1
SRI CHAITANYA TECHNO SCHOOL, MANAPAKKAM
CERTIFICATE
EXAMINER 1 EXAMINER
2
ACKNOWLEDGEMENT
These guidance and support received from all the member who
contributed and who are contributing to this project, was vital for the
success of the project and grateful for their support and help.
3
INDEX
BRIEF OVERVIEW OF
1 5
PROJECT
NEED FOR
2 6
COMPUTERIZATION
4 ADVANTAGES OF PROJECT 8
6 OUTPUT SCREEN 13
7 BIBLIOGRAPHY 15
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.
6
Software and Hardware
Requirements
# SOFTWARE SPECIFICATION
Database : MySQL
Languages : Python
# HARDWARE SPECIFICATION
Hard Disk : 40 GB
RAM : 1024 MB
7
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
8
# 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:
mycursor.close()
mydb.close()
sys.exit();
else:
Home()
9
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:
data=mycursor.fetchall()
qid=(mycursor.rowcount)+1
10
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("--------------------------------------------------------------------------------------------")
print("Q.",c,": ",ques[1],"\nA.",ques[2],"\t\tB.",ques[3],"\nC.",ques[4],"\t\tD.",ques[5])
print("--------------------------------------------------------------------------------------------")
11
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()
12
#OUTPUT SCREEN
13
#MYSQL TABLE
#LIMITATIONS
14
❖ Computer science With Python - Class XII
By: Sumita Arora
❖ Website: https://www.w3resource.com
15