0% found this document useful (0 votes)
15 views

Quiz Software

Uploaded by

Aravind A
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Quiz Software

Uploaded by

Aravind A
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

PYTHON PROGRAMMING

NAME: SAI.R

REGISTRATION NUMBER:

CLASS: XII

YEAR: 2020-2021

TOPIC: QUIZ SOFTWARE


A PROJECT REPORT ON
QUIZ SOFTWARE

Submitted by
SAI.R Class: XII
Under the guidance of
Mrs.R.V.Nalinaa, ME (Computer Science and Engineering)
Department of Computer Science and Application
Achariya Bala Siksha Mandir
Fishing harbor road, Thengaithittu.
BONAFIDE CERTIFICATE
This is to certify that the project entitled Quiz Software is a bonafide
work done by Sai.R Reg.no…………….. Studying in class XII during
the academic year 2020-2021 in ACHARIYA BALA SIKSHA
MANDIR, PUDUCHERRY under the supervision of Mrs.R.V.Nalinaa
submitted for ALL INDIA SENIOR SECONDARY SCHOOL
CERTIFICATE PRACTICAL EXAMINATION.

SIGNATURE OF INTERNAL SIGNATURE OF PRINCIPAL

SIGNATURE OF EXTERNAL
DECLARATION

I hereby declare the project work entitled Quiz Software submitted to


department of computer science and application, ACHARIYA BALA
SIKSHA MANDIR, PUDUCHERRY is prepared by me. All the work is
the result of my personal efforts.

SAI.R
Acknowledgement

I thank my Informatics Practices teacher Mrs.Nalinaa for guidance and


support. I also thank my Principal Mrs. R. Kavitha. I would also like to
thank my parents and my sister for encouraging me during the course of
this project. Finally I would like to thank CBSE for giving me this
opportunity to undertake this project.
Table of Contents

S.No Title Page No


1 Project Description
2 Coding
3 Screenshot
4 System Requirements
5 Bibliography
Project Description

This Project is on “QUIZ SOFTWARE”. Quiz is a wonderful way to test one’s

knowledge. But when it comes to storing the data in a structured and schematic way it is

a hectic task so in order to tackle this problem we must have a data management system

for this, so this work of software management will not only help you to store the data but

will also help you to maintain a detailed record of your quiz program. ENJOY!!!!!!
Coding

import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",passwd="manager",database="qui
z_comp")
mycursor=mydb.cursor()
#mycursor.execute("create table questions1(qno_no int(3) primary key , qno_desc
varchar(10000),opt_a varchar(500), opt_b varchar(500), opt_c varchar(500) ,opt_d
varchar(500) , ans varchar(5000))")
print("QUIZ SOFTWARE")
print("1.questions")
print("2.participants")
print("3.scores update")
print("4.display")
choice=int(input("enter your wish:"))
if choice==1:
sql=int(input("enter the index_no:"))
sql1=input("enter the ques_desc:")
sql2=input("enter the option a:")
sql3=input("enter the option b:")
sql4=input("enter the option c:")
sql5=input("enter the option d:")
sql6=input("the answer is:")

sql_in= "insert into questions1 values(" + str( sql) + ",'" + (sql1)+ "'"+",'" + (sql2) + "'"+",'" +
(sql3) +"'" +",'"+ (sql4) +"'"+",'" + (sql5) +"'"+ ",'"+(sql6) +"'"")"
mycursor.execute(sql_in)
mydb.commit()
print("your request has been processed.Thank you for making us as a part of your project")
#mycursor.execute("create table participants(reg_no int(5) primary key, pname
varchar(50) ,age_group int(10),city varchar(50),no_of_appearances_made int(10))")
if choice==2:
sql6=int(input("enter the participant reg_no:"))
sql7=input("enter the participant name:")
sql8=int(input("enter the age group:"))
sql9=input("enter the city:")
sql10=int(input("enter the no of appearances made:"))

sql_int="insert into participants values("+ str(sql6)+ ",'" + (sql7) + "'" + ",'"+str(sql8) + "'" +
",'"+(sql9) +"'"+ ",'"+str(sql10)+"'"")"
print(sql_int)
mycursor.execute(sql_int)
print("participants are all updated")
mydb.commit()
#mycursor.execute("create table scores(reg_no int(5) primary key , participant_name
varchar(50),scores int(50),total_correct int(50),total_wrong int(50),total_attempted int(50))")
if choice==3:
a=int(input("enter the reg_no"))
b=input("enter the participants name")
c=int(input("enter the scores"))
d=int(input("enter the total correct answer"))
e=int(input("enter the incorrect answer"))
f=int(input("enter the no_of_attempted_questions"))

sql_insert="insert into scores values("+ str(a) +",'"+ (b) +"'"+",'"+ str(c)+"'"+",'"+ str(d) +"'"+
",'"+str(e) +"'"+",'"+ str(f)+ "'"")"
print(sql_insert)
mycursor.execute(sql_insert)
mydb.commit()
if choice==4:
mycursor.execute("select * from questions1")
data=mycursor.fetchall()
print(data)
SCREENSHOT
SYSTEM REQUIREMENTS

 HARDWARE REQUIRED

 Printer, to print the required documents of the project


 Compact Drive
 Processor : Pentium III
 Ram : 64 MB
 Hard disk : 20 Gb.

 SOFTWARE REQUIRED

 Operating system : Windows 7/Windows 10


 Python 3.9.1
 Ms word for presentation of output.
Bibliography

1. Informatics Practices - Class XII By : Sumita Arora


2. A Project Report On QUIZ SOFTWARE MANAGEMENT SYSTEM.(QSMS)
By : CDT J GNANESH
3. Website: https://www.w3resource.com

You might also like