0% found this document useful (0 votes)
12 views11 pages

CSC Project Merged

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

CSC Project Merged

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

TABLE OF CONTENT

SNO DESCRIPTION PAGE NO

1 ACKNOWLEGEMENT

2 INTRODUCTION

3 OBJECTIVES OF THE PROJECT

HARDWARE AND SOFTWARE


4
REQUIREMENTS

5 SOURCE CODE

6 OUTPUT

7 BIBLIOGRAPHY
PROJECT ON QUIZ SOFTWARE MANAGEMENT SYSTEM

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.

OBJECTIVES OF THE PROJECT

The objective of this project is to allow the management to maintain a clean

and structured detail of their quiz programme.

Write programs utilizing modern software tools.

1. Apply simple principles effectively when developing small to medium sized

projects.

2. Write effective procedural code to store small to medium sized information.

3. Students will demonstrate a breadth of knowledge in computer science, as

exemplified in the areas of systems, theory and software development.

4. 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.


HARDWARE AND SOFTWARE REQUIREMENTS

HARDWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python
SOURCE CODE
import mysql.connector

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

wd="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:"))

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()

14
#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)
OUTPUT
.BIBLIOGRAPHY

1. Computer science With Python - Class XI &XII By : SumitaArora

2. Head-First Python’(2nd Edition) By: Paul Barry

3. Python Programming: An Introduction to Computer Science (3 rd Edition)

By John Zelle

4. Website: https://www.w3resource.com

***

You might also like