INFORMATICS
PRACTICES
Project
BY : Srikar Siripurapu & Abhishek
CLASS : 12
SECTION : J & K
ID NO. : 13W0788 &
CERTIFICATE
This is to certify that _____________________ studying in Class XII J of
OAKRIDGE INTERNATIONAL SCHOOL has successfully submitted his
Informatics Practices Project _____________________ during the
academic year 2024-25.
Teacher-in-charge Head of Department
Date: Date :
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.
Name of the Student:
Class :
Board Roll no.:
INDEX
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
→ Windows Operating System
->Python IDLE 3.12
->Mysql
FEASIBILITY STUDY
Feasibility study is a system proposal according to its work,
ability, impact on the operation ability to meet the needs of
users and efficient use of resources. An important outcome of
preliminary investigations the determination of that system
requested feasible.
ECONOMICAL FEASIBILITY:
Economic analysis is the most frequent method for evaluating the
effectiveness of the candidates the benefits and savings that are expected
from system and compare them with cost.
This software is not very costly. It’s just worth
Rs 5500/- so users records can be maintained at a cheaper cost and every
school would like to use the software so that the students record can be
managed easily.
TECHNICAL FEASIBILITY:
Technical feasibility center on the existing computer system
and to what extent it can support the proposed task .This
involves financial consideration to accommodate technical
enhancements.
It is technically feasible because whatever technology is
needed to develop this software is easily available.
ERROR AND ITS TYPE
An error, sometime called “A BUG” is anything in the code that
prevents a program from compiling and running correctly. There
are broadly three types of errors as follows:
1 Compile-time error: Error that occurs during compilation of
a program is called compile time error. It has two types as
follows:
• Syntax error: It refers to formal rules governing the
construction of valid statements in a language.
• Semantics error: It refers to the set of rules which give
the meaning of a statement.
2 Run time error: Errors that occur during the execution of
program are run time errors. These are harder to detect
errors. Some run-time error stop the execution of program
which is then called program “Crashed”.
3 Logical errors: Sometimes, even if you don’t encounter any
error during compiling-time and runtime, your program
does not provide the correct result. This is because of the
programmer’s mistaken analysis of the problem he or she
trying to solve. Such errors are called logical error.
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.
2. Beta Testing: It is a formal type of software testing which is
carried out by the customers. It is performed in a real
environment before releasing the products into the market for
the actual end-users. It is carried out to ensure that there are
no major failures in the software or product and it satisfies the
business requirement. Beta Testing is successful when the
customer accepts the software.
3. White box testing: White box testing is based on the
knowledge about the internal logic of an application’s code. It
is also known as Glass Box Testing. Internal software and code
working should be known for performing this type of testing .
These tests are based on the coverage of the code statements,
branches, paths, conditions etc.
4. Black box testing: It is a software testing, method in which
the internal structure or design of the item to be tested is not
known to the tester. This method of testing can be applied
virtually to every level of the software testing.
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:
1. Corrective Maintenance: When the program after
compilation shows error because of some unexpected
situations, untested areas such errors are fixed up by
Corrective maintenance.
2. Adaptive Maintenance: Changes in the environment in
which an information system operates may lead to system
management. To accommodate changing needs time
maintenance is done and is called Adaptive maintenance.
3. Preventive Maintenance: If possible the errors could be
anticipated before they actually occur; the maintenance is
called Preventive maintenance.
4. Perfective Maintenance: In this rapidly changing world,
information technology is the fastest growing area. If the
existing system is maintained to keep tuned with the new
features, new facilities, new capabilities, it is said to be
Perfective maintenance.
Source code
import sys
import mysql.connector
import random
mydb=mysql.connector.connect(host= "localhost" ,user= "root",\
passwd="12345",database= "quiz")
mycursor=mydb.cursor()
def Home():
f=1
while f!=3:
print("Welcome to Quiz")
print("********************")
print("1. Enter Questions")
print("2. Take Quiz")
print("3. Exit")
f=int(input("Enter your choice: "))
if f==1:
Question()
elif f==2:
Quiz()
elif f==3:
print("Exiting the Quiz")
mycursor.close()
mydb.close()
sys.exit();
else:
Home()
def Question():
ch='Y'
while ch=='Y' or ch=='y':
print("Welcome to Question Portal")
print("***********************")
q=input("Enter the question :")
op1=input("Enter the option 1 :")
op2=input("Enter the option 2 :")
op3=input("Enter the option 3 :")
op4=input("Enter the option 4 :")
ans=0
while ans==0:
op=int(input("Which option is correct answer (1,2,3,4) :"))
if op==1:
ans=op1
elif op==2:
ans=op2
elif op==3:
ans=op3
elif op==4:
ans=op4
else:
print("Please choose the correct option as answer")
mycursor.execute("Select * from question")
data=mycursor.fetchall()
qid=(mycursor.rowcount)+1
mycursor.execute("Insert into question values
(%s,%s,%s,%s,%s,%s,%s)",(qid,q,op1,op2,op3,op4,ans))
mydb.commit()
ch=input("Question added successfully.. Do you want to add more (Y/N)")
Home()
def Quiz():
print("Welcome to Quiz portal")
print("***********************")
mycursor.execute("Select * from question")
data=mycursor.fetchall()
name=input("Enter your name :")
rc=mycursor.rowcount
noq=int(input("Enter the number of questions to attempt (max %s):"%rc))
l=[]
while len(l)!=noq:
x=random.randint(1,rc)
if l.count(x)>0:
l.remove(x)
else:
l.append(x)
print("Quiz has started")
c=1
score=0
for i in range(0,len(l)):
mycursor.execute("Select * from question where qid=%s",(l[i],))
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:
choice=input("Answer (A,B,C,D) :")
if choice=='A' or choice=='a':
ans=ques[2]
elif choice=='B' or choice=='b':
ans=ques[3]
elif choice=='C' or choice=='c':
ans=ques[4]
elif choice=='D' or choice=='d':
ans=ques[5]
else:
print("Kindly select A,B,C,D as option only")
if ans==ques[6]:
print("Correct")
score=score+1
else:
print("Incorrect.. Correct answer is :",ques[6])
print("Quiz has ended !! Your final score is :",score)
input("Press any key to continue")
Home() Home()
OUTPUT :
BIBLIOGRAPHY
Website : www.w3resource.com