0% found this document useful (0 votes)
71 views34 pages

Computer Project

The document describes a computer project titled "General Quiz Mania" created by students Utsav Shah, Eshan Budhrani, and Khushal Sethiya. The project is a quiz application that analyzes quiz data to calculate student scores and performance. It was developed over 37 days and uses Python and MySQL to manage questions, participants, and generate reports. The document outlines the project objectives, features, hardware and software requirements, and limitations.

Uploaded by

Nikhil Thadani
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)
71 views34 pages

Computer Project

The document describes a computer project titled "General Quiz Mania" created by students Utsav Shah, Eshan Budhrani, and Khushal Sethiya. The project is a quiz application that analyzes quiz data to calculate student scores and performance. It was developed over 37 days and uses Python and MySQL to manage questions, participants, and generate reports. The document outlines the project objectives, features, hardware and software requirements, and limitations.

Uploaded by

Nikhil Thadani
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/ 34

COMPUTER PROJECT

Class 12

Sindhi Model Senior Secondary School


Damodaran Street
Chennai

Topic: General Quiz Mania

By Utsav Shah
Eshan Budhrani
Khushal Sethiya
PROJECT SYNOPSIS
TITLE OF THE PROJECT:
General Quiz Mania (GQM)

PROBLEM DEFINTION:
Design a Project(quiz) to analyze the data for the quiz and calculate
the percentage marks obtained by the students , overall win% and
loss% and students getting 90% and above.

TEAM MEMBERS:
Utsav Shah , Eshan Budhrani and Khushal Sethiya

TEAM DETAILS:
The project “GQM” is developed by Utsav Shah, Eshan Budhrani and
Khushal Sethiya. It took us approx. 37 days to develop this project.
All modules completed by us as per our view and knowledge .

Objective of Quiz System


• The main objective of the General Quiz Mania is to
manage the details of Points, Level, Patters, Answers,
Participants. It manages all the information about Points,
Questions, Participants, Points.
• The project is totally built at administrative end and thus
only Utsav Shah, Eshan Budhrani and Khushal Sethiya
have the access.
• The purpose of the project is to build an application
program to reduce the manual work for managing the
Points, Level, Questions, Patters.

2
• It tracks all the details about the Patters, Answers,
Participants.

Feature of Quiz System Are as Follows:


• Provides the searching facilities based on various factors. Such
as Points, Patters, Answers, Participants
• The transactions are executed in off-line mode, hence on-line
data for Points, Level capture and modification is not possible.
• It tracks all the information of Level, Questions, Answers etc.
• Manage the information of Level
• Shows the information and description of the Points, Patters
• All the fields such as Points, Patters, Participants are validated
and does not take invalid values
• It generates the report on Points, Level, Questions
• Provide filter reports on Patters, Answers, Participants
• You can easily export PDF for the Points, Questions, Answers
• Application also provides excel export for Level, Patters,
Participants
• You can also export the report into csv format for Points, Level,
Participants
• To increase efficiency of managing the Points, Level
• It deals with monitoring the information and transactions of
Answers.
• Manage the information of Points
• Editing, adding and updating of Records is improved which
results in proper resource management of Points data.
• Manage the information of Answers
• Integration of all records of Participants.

3
REASON FOR CHOOSING THIS
TOPIC:

• Quizes are interactive platforms where students are not


participating to take home a prize or get famous overnight, but
to gain knowledge, seek opportunities to excel beyond
academics and secure their future.

• Since questions are based out-of-syllabus and require critical


thinking and extensive research, students get into the habit of
innovative learning from an early age.

• Quizzes help students identify what they know and what they
don’t know. The students then have a better idea of how well
they are grasping the material, hopefully motivating them to
study more and helping them allocate their study time
effectively by focusing on the information that still needs more
practice.

Hardware Requirements:
• A Computer/Laptop with
• Operating System-Windows 7 or above
• x86 64-bit CPU (Intel / AMD architecture)
• 4 GB RAM.
• 5 GB free disk space.

Software Requirements:
• Python 3.6.x or higher version.
• Pandas Library preinstalled.

4
• My SQL
• Matplotlib Library preinstalled.
• Ms-Office installed.

LIMITATIONS:
1. Cheating practices:
• Although the exams are taken based on trust in the
students, some of them succeed in adopting
malpractices like cheating.

2.No time limit:


• Since there is a lot of time provided people can take
their own time to complete.

5
"""Integrate python with mysql to create a table, insert
records into the table and display them"""

import mysql.connector as sql

mycon = sql.connect(host="localhost", user="root",


passwd="shreyrao", database="shrey12a", port=3306)

cursor = mycon.cursor()
try:
cursor.execute("create table Std(StdID int, stdName
varchar(15))")
print("Table created successfully.")
except:
# exception raised if table already exists
pass
studID = input("Enter student id: ")
studName = input("Enter student name: ")
studName = studName.title()
print("\n Hello {}, welcome to Quiz night!You will be
presented with 35 questions.Enter the appropriate number
to answer the question Good luck!".format(studName))
ch = input("Are you ready to start the quiz?(y/n):")
while True:
if ch.lower()== 'y':
break
else:
ch = input("Invalid input! enter again: ")

6
score=0

#Question1
print("\n")
print("""Q1.The members of the Rajya Sabha are elected
by ?
A. the people
B. Lok Sabha
C. elected members of the legislative assembly
D. elected members of the legislative council""")
answer = "c"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option:C")
else:
print("Well done! " + response + " is correct!")
print("""Explanation:
Members of Rajya Sabha are elected bythe elected
members of the Assemblies of States and Union territories
in accordance with the system of proportional
representation by means of the single transferable vote.""")
score = score + 1

print("Your current score is " + str(score) + " out of 35")


print("\n")

#Question2
print("\n")

7
print("""Q2.For which of the following disciplines is Nobel
Prize awarded?
A.Physics and Chemistry
B.Physiology or Medicine
C.Literature, Peace and Economics
D.All of the above""")
answer = "d"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option:D")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question 3 is an image question


from tkinter import *
from PIL import Image
img = Image.open('Statue _of _unity.png')
#Display image
img.show()
#Save image
img.save('Statue_of_unity.png')
print("\n")

print("""Q3. Which part of India is the statue placed?


A.Kevadia, Gujara
B.Chennai, Tamil nadu

8
C.Banglaore, Karnataka
D.Vijayawada, Andra Pradesh""")
answer ="a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option:A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question4
print("\n")
print("""Q4. Hitler party which came into power in 1933 is
known as

A.Labour Party
B.Nazi Party
C.Ku-Klux-Klan
D.Democratic Party""")
answer ="b"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option:A")
else:
print("Well done! " + response + " is correct!")

9
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question5
print("\n")
print("""Q5. Which type of Programming does Python
support?
A. object-oriented programming
B. structured programming
C. functional programming
D. all of the mentioned""")
answer = "d"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option:D")
else:
print("Well done! " + response + " is correct!")
print("""Explanation:
Python is an interpreted programming language,
which supports object-oriented, structured, and functional
programming""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question6
print("\n")

10
print("""Q6. The university which became famous in the
post-Gupta Era was:
A.Kanchi
B.Taxila
C.Nalanda
D.Vallabha""")
answer = "c"
response = input("Your answer is : ")
print("\n")
if (response != answer):
print("Sorry , this is incorrect")
print("The answer is option : C ")
else:
print("Well done!" + response + "is correct")
print("""Explanation:
Nalanda Vishwavidyalya (Bihar) was founded in the
5th century by Gupta king Kumar gupta. Bakhtiyar looted
and burned the Nalanda University in 1193 AD.""")
score = score+1
print("Your current score is " + str(score) + " out of ")
print("\n")

#Question7
print("\n")
print("""Q7.Banabhatta was the court poet of which
emperor ? :
A.Vikramaditya
B.Kumaragupta
C.Harshvardhana
D.Kanishka""")
answer = "c"

11
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : c")
else:
print("Well done! " + response + " is correct!")
print(""""Explanation :
Banabhatta was the court poet of king
Harshavardhana. He wrote the biography of king Harsha,
'Harsha Charita' and the famous novel “Kadambari'.""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question8
print("\n")
print("""Q8. The law which states that the amount of gas
dissolved in a liquid is proportional to its partial pressure is:
A.Dalton's law
B.Gay Lussac's law
C.Henry's law
D.Raoult's law""")
answer = "c"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : c")
else:
print("Well done! " + response + " is correct!")

12
print("""Explanation :
1)In physical chemistry, Henry's law is a gas law
that states that the amount of dissolved gas in a liquid is
proportional to its partial pressure above the liquid
2)The proportionality factor is called Henry's law
constant.""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Qustion9
print("\n")
print("""Q9.Who among the following finds prey with the
help of a special sound?
A.Bat
B.Owl
C.Kite
D.Hawk""")
answer = "a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question10

13
print("\n")
print("""Q10.The palk strait separates which of these
countries from mainland India?
A.Pakistan
B.Bangladesh
C.Sri Lanka
D.Indonesia""")
answer ="a"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question 11
print("\n")
print("""Q11.Article 370 of the constitution is applicable to
which state?
A.Nagaland
B.Mizoram
C.Manipur
D.Jammu and Kashmir""")
answer = "d"
response = input("Your answer is:")
print("\n")
if (response != answer):

14
print("Sorry, that is incorrect!")
print("the answer is option : D")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question 12
print("\n")
print("""Q12.The most abundant rare gas in the atmosphere
is
A.He
B.Ne
C.Ar
D.Xe
""")
answer ="c"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : C")
else:
print("Well done! " + response + " is correct!")
print("""Explanation :
The most abundant rare gas in the atmosphere is
Argon (Ar).""")

score = score + 1
print("Your current score is " + str(score) + " out of 35")

15
print("\n")

#Question13
print("\n")
print("""Q13.computer abbreviation usually means ?
A.Order of Significance
B.Open Software
C.Operating System
D.Optical Sensor""")
answer ="c"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : C")
else:
print("Well done! " + response + " is correct!")
print("""Explanation :
The most abundant rare gas in the atmosphere is
Argon (Ar).""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question14
print("\n")
print("""Q14.Which of the following terms is not used in the
field of physics?
A.Latent heat
B.Nuclear fusion
C.Refractive index

16
D.Stock value""")
answer ="d"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : D")
else:
print("Well done! " + response + " is correct!")
print("""Explanation :
Stock value is not used in the field of physics""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question15
print("\n")
print("""Q15.Large transformers, when used for some time,
become very hot and are cooled by circulating oil. The
heating of the transformer is due to:
A. The heating effect of current alone
B. Hysteresis loss alone
C. Both the heating effect of current and hysteresis loss
D. Intense sunlight at noon""")
answer ="c"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : C")
else:

17
print("Well done! " + response + " is correct!")
print("""Explanation :
1)Large transformers, when used for some time, become
very hot and are cooled by circulating oil.
2)The heating of the transformer is due to both the heating
effect of current and hysteresis loss """)
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question16
print("\n")
print("""Q16.India first took part in the Olympic Games in
the year?
A)1920
B)1928
C)1972
D)1974""")
answer ="a"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question17
print("\n")

18
print("""Q17.India first took part in the Olympic Games in
the year?
A)1920
B)1928
C)1972
D)1974""")
answer = "a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35 ")
print("\n")

#Question18
print("\n")
print("""Q18.Sabin Awards is given for the conservation of ?
A)Amphibians
B)Reptiles
C)Birds
D)Corals""")
answer = "a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")

19
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question19
print("\n")
print("""Q19.Rectifiers are used to convert:
A.Direct current to Alternating current
B.Alternating current to Direct current
C.High voltage to low voltage
D.Low voltage to high voltage""")
answer = "b"
response = input("Your answer is :")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :B")
else:
print("Well done! " + response + " is correct!")
print("""Explanation :
A rectifier is an electrical device that converts alternating
current (AC), which periodically reverses direction, to direct
current (DC), which flows in only one direction.
The process is known as rectification, since it
"straightens" the direction of current.
""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

20
#Question20
print("\n")
print("""Q20.Grand Central Terminal, Park Avenue, New
York is the world's
A.largest railway station
B.highest railway station
C.longest railway station
D.None of the above""")
answer = "a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question21
print("\n")
print("""Q21.Entomology is the science that studies
A.Behavior of human beings
B.Insects
C.The origin and history of technical and scientific
terms
D.The formation of rocks""")
answer:"b"
response = input("Your answer is :")

21
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :B")
else:
print("Well done! " + response + " is correct!")
print("""Explanation :
Entomology: The branch of zoology concerned
with the study of insects.""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question22
print("\n")
print("""Q22.Euclid was
A.Greek mathematician
B.Contributor to the use of deductive principles of
logic as the basis of geometry
C.Propounded the geometrical theorems
D.All of the above""")
answer:"d"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : D")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")

22
print("\n")

#Question23
print("\n")
print("""Q23.During World War I Germany was defeated in
the Battle of Verdun on the western front and Romania
declared war on the eastern front in the year:
A.1914 AD
B.1915 AD
C.1916 AD
D.1917 AD
""")
answer:"c"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : C")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question24
print("\n")
print("""Q24.For galvanizing iron which of the following
metals is used?
A.Aluminium
B.Copper
C.Lead

23
D.Zinc
""")
answer:"d"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : D")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question2
print("\n")
print("""Q25.Economic goods are :
A.all commodities that are limited in quantity as
compared to their demand
B.Commodities that is available according to their
demand
C.Commodities that is available more as compared to
demand
D.None of the above
""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")

24
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question26
print("\n")
print("""Q26.For purifying drinking water alum is used:
A.for coagulation of mud particles
B.to kill bacteria
C.to remove salts
D.to remove gases""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question27
print("\n")
print("""Q27.India has largest deposits of ____ in the world.
A.gold
B.copper
C.mica

25
D.None of the above""")
Answer:"c"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :C")
else:
print("Well done! " + response + " is correct!")
print("""Explanation:
The British Geological Survey reports that as of
2005, Kodarma district in Jharkhand state in India had the
largest deposits of mica in the world.""")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question28
print("\n")
print("""Q28.India's first satellite is named after?
A.Aryabhatta
B.Bhaskara II
C.Bhaskara I
D.Albert Einstein""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:

26
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35 ")
print("\n")

#Question29
print("\n")
print("""Q29.If force is expressed in Newton and the
distance in metre, then the work done is expressed in:
A.Joule
B.Kg wt
C.Kg wt m
D.Watt""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option : A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question30
print("\n")
print("""Q30.If speed of rotation of the earth increases,
weight of the body will?
A.increases
B.remains unchanged

27
C.decreases
D.may decrease or increase""")
answer:"c"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :C")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question31
print("\n")
print("""Q31.How many players are there on each side in
the game of Basketball?
A.4
B.5
C.6
D.7""")
answer:"b"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :C")
else:
print("Well done! " + response + " is correct!")
score = score + 1

28
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question32
print("\n")
print("""Q32.Hundred year war was fought between ?
A.France and England
B.Greek and Persian forces
C.Civil war in England
D.None of the above""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question33
print("\n")
print("""Q33.In cricket, a run taken when the ball passes the
batsman without touching his bat or body is called
A.leg bye
B.bye
C.bosie
D.drive""")
answer:"b"

29
esponse = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :B")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

#Question34
print("\n")
print("""Q34.Milkha Singh Stood ____ in 1960 Olympics, in
Athletics ?
A.fourth in 400m final
B.second in 400m final
C.eighth in 50km walk
D.seventh in 800m final""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + " out of 35")
print("\n")

30
#Question35
print("\n")
print("""Q35.Modern football is said to have evolved from?
A.England
B.India
C.Frace
D.Spain""")
answer:"a"
response = input("Your answer is:")
print("\n")
if (response != answer):
print("Sorry, that is incorrect!")
print("the answer is option :A")
else:
print("Well done! " + response + " is correct!")
score = score + 1
print("Your current score is " + str(score) + "/35")

cursor.execute(f"insert into Std


values({studID},{studName},{score}")

mycon.commit()
print('data stored in database’)

print("\n")
if score < 10 :
print("Needs to improve in general knowledge")
if score >= 10 and score < 15 :
print("Can do better")
if score >= 15 and score < 20 :
print("your almost there")

31
if score >= 20 and score < 25 :
print("pretty good")
if score >= 25 and score < 30 :
print("very well done")
if score >= 30 and score <= 35 :
print(“smart”)

32
33
34

You might also like