Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 25

ST.

ANN’S SCHOOL
XIIth Commerce COMPUTER
SCIENCE
PROJECT WORK
(2022-23)
QUIZ SOFTWARE MANAGEMENT SYSTEM

SUBMITTED BY:- SUBMITTED TO:-


ROLLNO. NISHA MA’AM
BHUMI SOMPURA -
HEMALI PATEL -
Acknowledgement
Firstly, I would like to thank our computer teacher, Mrs. Nisha Ma’am,
because he always supported and guided us while doing this project. He
very well cleared all the doubts I had regarding this project.
Also, I would like to especially thank my parents and friends who helped
me a lot to complete this project within the limited time.
The journey of making this project has been beautiful, as well as
knowledgeable for me and I have learned a lot from it.
Once again, thanks to everyone who was involved with this project from
beginning to end.
Contents:--
• Introduction
• Objectives of the project
• Introduction of dbms
• Modules of Quiz management system
• Reports to Quiz management system
• Features of Quiz management system
• DBMS WITH SQL Command
• SQL connectivity with python
• Source code
• Output
• Code completeness evaluation
• Software required
• Bibliography
QUIZ SOFTWARE MANAGEMENT
sytem
USING PYTHON AND SQL
INTRODUCTION
Quiz is a wonderful way to test one’s knowledge . But when it
comes to storing the data is 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
programme. ENJOY!!!!!!
QUIZE
SOFTWARE
MANAGEMENT
SYSTEM 1. The objective of this project is to allow the management to
maintain a clean and structured detail of their quiz programme.
2. Write programs utilizing modern software tools.
3. Apply simple principles effectively when developing small to
medium sized projects.
OBJECTIVE 4. Write effective procedural code to store small to medium sized
information.
S OF THE 5. Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of systems, theory and
PROJECT software development.
6. Students will demonstrate ability to conduct a research or applied
Computer Science project, requiring writing and presentation
skills which exemplify scholarly style in computer science.
INTRODUCTION TO DATABASE MANAGEMENT
SYSTEM
Database is a collection of interrelated data which
helps in the efficient retrieval, insertion, and deletion of
data from the database and organizes the data in the
form of tables, views, schemas, reports, etc. For
Example, a university database organizes the data
about students, faculty, admin staff, etc. which helps in
the efficient retrieval, insertion, and deletion of data
from it.
DBMS PROJECT ON
QUIZE MANAGEMENT
SYSTEM
MODULES OF QUIZE MANAGEMENT
SYSTEM

 Academic Module: We can create, read , update and delete academics from
this module.
 Score Module: All the operations related to score, is managed by this
module.
 Performance Module: Performance Module is used to manage the
performance.
 Quiz Module: It has been developed for managing the quize.
• Participant Module: It manages the Participants.
• Winner Module: Winner operations will be managed by Winner Module .
REPORTS OF QUIZE MANAGEMENT
SYTEM

 All reports related to Academic


 All reports related to Score
 All reports related to Performance
 All reports related to Quiz
 All reports related to Participants
 All reports related to Winner
FEATURES OF QUIZE MANGEMENT
SYSTEM

 User can search details of the Score, Academic, Participate, Winner


 Quiz Management System is an online application, from which user can easily
manage academic details, Performance details, Quiz details
 Admin can track all the information of the Academic, Score, Performance act
 Admin can edit, add, delete and update the records of Quiz, Participate, Winner
 Manage the information about of Performance, Participate, Academic
DBMS WITH SQL
COMMANDS
The Python programming language has powerful
features for database programming. Python
supports various databases like SQLite,
MySQL, Oracle, Sybase, PostgreSQL, etc.
Python also supports Data Definition Language
(DDL), Data Manipulation Language (DML) and
Data Query Statements. The Python standard
for database interfaces is the Python DB-API.
Most Python database interfaces adhere to
Integrate SQL with Python by importing
the MYSQL module

import mysql.connector as sqltor


mycon = sqltor.connect (host = “localhost”, user = “root” , password = “2000” , database = “gvkcv”)
If mycon.is_connected( )== False:
Print (“ error connecting to database ”)
cursor = mycon.cursor ( )
cursor.execute(“select * from student10”)
data = cursor.fetchall( )
for i in data :
print(i)
mycon.close( )
QUIZ MANAGEMENT SYSTEM
SOURCE CODE :-

import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",passwd="manager",
database="quiz_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:"))
QUIZ MANAGEMENT SYSTEM

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:"))
QUIZ MANAGEMENT SYSTEM

#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()
QUIZ MANAGEMENT SYSTEM

if choice==4:
mycursor.execute("select * from questions1")
data=mycursor.fetchall()
print(data)
Output:-
Output:-
Output:-
Output:-
CODE COMPLETENESS
EVALUATION

White box testing methods can also be used to evaluate the completeness of a test suite that
was created with black box testing methods. This allows the software team to examine parts
of a system that are rarely tested and ensures that the most important function points have
been tested.

Two common forms of code coverage are:


Function Coverage: Which reports on functions executed and
Statement Coverage: Which reports on the number of lines executed to complete the test.
They both return coverage metric, measured as a percentage.
SOFTWARE REQUIRED

We have to use following software for the successful running of this


software , which are:

1. PYTHON , it is downloadable from ‘www.python.org’.

2. MYSQL , it is downloadable from ‘www.mysql.org’.


BIBLIOGRAPH
Y

1. www.google.com
2. Computer science with python book class 12 by Preeti arora
THANK
YOU..

You might also like