Project File Ip
Project File Ip
Project File Ip
BHOPAL
SESSION- 2024-25
CLASS XII
SUBMITTED TO SUBMITTED BY
________________________________ ______________________________
___________________________ __________________________
Content
INTRODUCTION
Python
Python is an interpreted, object-oriented, high-level programming
language with dynamic semantics. Its high-level built in data structures,
MySQL
MySQL is the world’s second most widely used Open-source Relational
Database Management System (RDBMS).It is named after its co-
founder Michael Widenius’s daughter, MySQL(Structured Query
Language) is a database computer language designed for managing data
in relational database management systems.
CSV :
A comma-separated values (CSV) file is a delimited text file that uses
a comma to separate values. Each line of the file is a data record. Each
record consists of one or more fields, separated by commas. The use of
the comma as a field separator is the source of the name for this file
The CSV file format is not fully standardized. Separating fields with
commas is the foundation, but commas in the data or embedded line
breaks have to be handled specially. Some implementations disallow
such content while others surround the field with quotation marks,
which yet again creates the need for escaping if quotation marks are
present in the data.
Python
import mysql.connector as sqltor
import sys
import random
import pandas as pd
import matplotlib.pyplot as plt
mydb = sqltor.connect(
host="localhost",
user="root",
password="root",
database='quiz')
mycursor=mydb.cursor()
#Entering Questions
if ch==1:
Add_Ques()
elif ch==2:
Update_Ques()
elif ch==3:
Remove_Ques()
if ch==4:
Home()
else:
print('Please Enter a valid response')
ch=input('Shall we Start/Continue(Yes,No or Go Back):')
def Graph():
print()
mycursor.execute('select score from student_score')
mark_obt=list(mycursor.fetchall())
mycursor.execute('select ques_attempt from student_score')
ques_attempt=list(mycursor.fetchall())
plt.plot(mark_obt,ques_attempt)
plt.xlabel=('Marks obtained')
plt.ylabel=('Question attempted')
plt.title='Performance chart'
plt.show()
def Ques_Bank():
print('Welcome to Question Bank')
print()
f=int(input('''What do you wish to refer from the Question Bank
1.Full Table
2.Size
3.Shape
4.A Certain question
5.Exit
def Add_Ques():
print('Welcome To Question Portal')
ques=str(input('Enter Question:'))
print()
opt1=str(input('Enter Option 1:'))
print()
opt2=str(input('Enter Option 2:'))
print()
opt3=str(input('Enter Option 3:'))
print()
opt4=str(input('Enter Option 4:'))
print()
def Update_Ques():
print('Welcome To Question Portal')
print()
print('Select your question which you want to update from the bank')
print(Question_bank)
print()
up_ques=int(input('Enter the question no.that you want to update in the
Question Bank:'))
mycursor.execute('select ques from ques_bank where qid=(%s)',
(up_ques,))
print('''Your Selected Question:
def Remove_Ques():
print('Welcome to Question Portal')
print()
print('select the Question which you want to remove from the bank')
print(Question_bank)
print()
rem_ques=int(input('Enter the question no. that you want to remove from
the Question Bank'))
mycursor.execute('select ques from ques_bank where qid=(%s)',
(rem_ques,))
print('''Your Selected Question:
''',mycursor.fetchall())
choice=int(input('''What do you wish to do:
1.Proceed
2.Re-Select Question
3.Exit
The information in this project has been attained from the following
sources:
1. BOOKS :
2.WEBSITES :
✓ https://www.python.org/
✓ https://www.w3schools.com/
✓ https://www.pandas.org/
✓ https://www.pyplot.org/
✓ https://www.numpy.com/
✓ https://www.DataVisualisation.com/
✓ https://www.kaggle.com
✓ https://www.mysqltutorial.org/