Untitled Document
Untitled Document
PRACTICES
Project
External Signature
Date:
ACKNOWLEDGEMENT
I would like to convey my heartfelt thanks to Mrs. Chaarvi
Bellamkonda, my Informatics Practices Facilitator, who always gave
valuable suggestions and guidance for completion of my project.
She helped me to understand and remember important details of
the project. My project has been successful as per the requirement
of the CBSE board under the guidance.
1.System requirements
2.Feasibility study
3.Errors and its types
4.Testing
5.Maintenance
6.Code
7. Output
8.Bibliography
SYSTEM REQUIREMENTS
1. Hardware
->Laptop/Desktop
->Processor
->Minimum memory-2GB
2. Software
->Mysql
FEASIBILITY STUDY
ECONOMICAL FEASIBILITY:
TECHNICAL FEASIBILITY:
TESTING
1. Alpha Testing: It is the most common type of testing used in
the software industry. The objective of this testing is to identify
all possible issues or defects before releasing it into the
market or to the user. It is conducted at the developer’s site.
MAINTENANCE
Programming maintenance refers to the modifications in the
program. After it has been completed, in order to meet
changing requirement or to take care of the errors that shown
up. There are four types of maintenance:
import mysql.connector
import random
passwd="12345",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()
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
mydb.commit()
Home()
def Quiz():
print("***********************")
data=mycursor.fetchall()
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("-------------------------------------------------------------------------------------
-------"
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()
OUTPUT :
BIBLIOGRAPHY
Website : www.w3resource.com