Lakshya IP (1)
Lakshya IP (1)
KUMHARI, DURG
SESSION: 2024-25
IP PROJECT ON
QUIZ GAME
LAKSHYA LALWANY
XII COMMERCE
CERTIFICATE
SIGNATURE OF SIGNATURE OF
INTERNAL EXTERNAL
SIGNATURE OF
PRINCIPAL
CONTENTS
1. Introduction
2. Objective & Scope of the Project
3. Theoretical Background
4. Problem Definition & Analysis
5. System Implementation
1 - The Hardware used
2 - The Software used
6. System Design & Development
1 - Database Design
2 - Source Code
7. User Manual
1 - How to install Software
2 - Working with Software
8. Reference
1. INTRODUCTION :-
We had made a fun Quiz game using python. In this
game when we will run the program a question will
be asked to the user that if he/she wants to play the
game or not.
2.) Scopes :-
It saves more time.
It saves the student's money.
It saves paper.
It's more secure.
It also helps to make India one step forward in
Technology.
3. THEORETICAL BACKGROUND :-
1.) What is Database?
1.1) Introduction and Concepts :-
A Database is a collection of information related
to a particular subject or purpose, such as tracking
customer orders or maintaining a music collection.
Using any RDBMS application software like MS
SQL Server, MySQL, Oracle, Sybase, etc. You can
manage all your information from a single database
file.
#IMPORTING MODULES
from colorama import init, Fore, Back, Style
init()
import time
import tkinter as tk
#Welcome the user
ac="Welcome to the Quiz Game!"
print(ac.center(80))
v=input("Enter Your Name:-")
time.sleep(0.50)
print(1)Select the category in which you want to
answer questions",v,"\n(1) Entertainment\n(2)
Literature\n(3) Animals\n(4) Current Affairs\n\n ")
i=int(input("Enter Your Category 1,2,3,4:-"))
time.sleep(0.50)
#Chances
chances = 1
print("\nThere will be 10 questions.\nYou will be
given", chances, "point to answer 1 question
correctly. \nPlease put the alphabet of the answer.")
#Score
time.sleep(1.50)
print("\n\nLet's start the Quiz!")
score = 0
def bollywood():
#question number 1
global score
question_1 = print("1)As of 2020, which is the only
Bollywood movie to win 13 Filmfare Awards?\n(a)
Article 15\n(b) Uri: The Surgical Strike\n(c) Saand
Ki Aankh\n(d) Gully Boy\n\n TYPE quit TO QUIT
THE QUIZ\n\n\n")
answer_1 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_1):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_1,
"\n\n")
time.sleep(0.50)
#question number 2
question_2 = print("2) Which Bollywood
personality was named by NITI Aayog to promote
the Women Entrepreneurship platform (WEP)?\n(a)
Salman Khan\n(b) Akshay Kumar\n(c) Sushant
Singh Rajput\n(d) Vidya Balan\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_2 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_2):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_2,
"\n\n")
time.sleep(0.25)
#question number 3
question_3 = print("3) Bahubali festival is releted
to:-\n(a) Jainism\n(b) Hinduism\n(c) Buddhism\n(d)
Islam \n\n TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_3 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_3):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_3,
"\n\n")
time.sleep(0.25)
#question number 4
question_4 = print("4) Which Bollywood
personality has launched an online platform called
Pravasi Rojgar to help migrants find job
opportunities?\n(a) Nana Patekar\n(b) Nawazuddin
Siddiqui\n(c) Sonu Sood\n(d) Amitabh Bachchan\n\n
TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_4 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if(answer.lower() == answer_4):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_4,
"\n\n")
time.sleep(0.25)
#question number 5
question_5 = print("5) Which Bollywood celebrity
has been appointed as the first ever brand
ambassador of IDFC FIRST Bank?\n(a) Amitabh
Bachchan\n(b) Ranveer Singh\n(c) Salman
Khan\n(d) Shah Rukh Khan\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_5 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_5):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_5,
"\n\n")
time.sleep(0.25)
#question number 6
question_6 = print("6) Which movie has become
the first Bollywood film to go plastic-free?\n(a)
War\n(b) Mission Mangal\n(c) Coolie No. 1\n(d)
Dream Girl\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_6 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_6):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_6,
"\n\n")
time.sleep(0.25)
#question number 7
question_7 = print("7) Which Bollywood
personality has been honoured with the Meryl Streep
Award for Excellence?\n(a) Vidya Balan\n(b)
Aishwarya Rai Bachchan\n(c) Deepika
Padukone\n(d) Madhuri Dixit\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_7 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_7):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_7,
"\n\n")
time.sleep(0.25)
#question number 8
question_8 = print("8) Which Bollywood
personality has been named advocacy-
ambassador for Swachh Aadat Swachh Bharat
initiative?\n(a) Amitabh Bachchan\n(b) Aamir
Khan\n(c) Priyanka Chopra\n(d) Kajol\n\n TYPE
quit TO QUIT THE QUIZ\n\n\n")
answer_8 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_8):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_8,
"\n\n")
time.sleep(0.25)
#question number 9
question_9 = print("9) Which of the following
movies has became the first Bollywood film ever to
release in Saudi Arabia?\n(a) Pad manr\n(b)
Gold\n(c) Parmanu\n(d) Raazi\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_9 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_9):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_9,
"\n\n")
time.sleep(0.25)
#question number 10
question_10 = print("10) The Versatile Bollywood
actor Irrfan Khan, who recently passed away, had
won National award for which movie?\n(a) Lunch
Box \n(b) Life of Pi\n(c) Paan Singh Tomar\n(d)
Haidar\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_10 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_10):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_10,
"\n\n")
time.sleep(1)
if i==1:
bollywood()
def Literature():
#question number 1
global score
question_1 = print("1) Which American writer
published 'A brave and startling truth'in 1996?\n(a)
Robert Hass\n(b) Maya Angelou\n(c) Jessica
Hagdorn\n(d) Micheal Palmer\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_1 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_1):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_1,
"\n\n")
time.sleep(2)
#question number 2
question_2 = print("2) who is the writer of
endymion?\n(a) Fanny Brawne\n(b) William
Wordsworth\n(c) Jhon Keats\n(d) Lord Byron\n\n
TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_2 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_2):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_2,
"\n\n")
time.sleep(2)
#question number 3
question_3 = print("3) Which poet is considered a
national hero in Greece?\n(a) Lord Byron\n(b) John
keats\n(c) Solan\n(d) Sappho\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_3 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_3):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_3,
"\n\n")
time.sleep(2)
#question number 4
question_4 = print("4) What was strange about
Emily Dickson?\n(a) She wrote her poems in
invisible ink\n(b) She never attempted to publesh her
poetry\n(c) She rarely left home\n(d) She wrote in
code\n\n TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_4 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_4):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_4,
"\n\n")
time.sleep(2)
#question number 5
question_5 = print("5) The repetition of similar
ending sounds are called ______?\n(a)
alliteration\n(b) onomatopeia\n(c) rhyme\n(d) None
of these\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_5 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_5):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_5,
"\n\n")
time.sleep(2)
#question number 6
question_6 = print("6) The repetition of beginning
consonant sounds are called ______?\n(a) rhyme\n(b)
alliteration\n(c) onomatopoeia\n(d) NONE OF THE
ABOVE\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_6 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_6):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_6,
"\n\n")
time.sleep(2)
#question number 7
question_7 = print("7) A poem that tells a story
with plot,setting,and characters are called ______?
\n(a) lyric\n(b) free verse\n(c) narrative\n(d) None of
the above\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_7 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_7):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_7,
"\n\n")
time.sleep(2)
#question number 8
question_8 = print("8) William Shespear was born
in the year:-\n(a) 1544 \n(b) 1578\n(c) 1582\n(d)
1564\n\n TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_8 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_8):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_8,
"\n\n")
time.sleep(2)
#question number 9
question_9 = print("9) Which is an exaggeration?
\n(a) Hyperbole\n(b) Haiku\n(c) Alliteration\n(d)
Prose\n\n TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_9 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_9):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_9,
"\n\n")
time.sleep(2)
#question number 10
question_10 = print("10) Shakespeare
wrote_____plays?\n(a) 32\n(b) 34\n(c) 38\n(d) 36\n\n
TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_10 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_10):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_10,
"\n\n")
time.sleep(1)
if i==2:
Literature()
def Animals():
#question number 1
global score
question_1 = print("1)Which of the following is
not a true snake?\n(a) Tree Snake\n(b) Glass
Sanke\n(c) Blind Snake\n(d) Sea Snake\n\n TYPE
quit TO QUIT THE QUIZ\n\n\n")
answer_1 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_1):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_1,
"\n\n")
time.sleep(2)
#question number 2
question_2 = print("2) which is the largest living
animal?\n(a) whale\n(b) Elephant\n(c) Rorqual\n(d)
None of these\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_2 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_2):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_2,
"\n\n")
time.sleep(2)
#question number 3
question_3 = print("3) Which is the smallest bird
alive?\n(a) Budgerigar\n(b) Canary\n(c) Finch\n(d)
Hummingbird\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_3 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_3):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_3,
"\n\n")
time.sleep(2)
#question number 4
question_4 = print("4) Which is the fastest land
animal?\n(a) fox\n(b) Cheetah\n(c) Dog\n(d) None of
the above\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_4 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_4):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_4,
"\n\n")
time.sleep(2)
#question number 5
question_5 = print("5) Which is the largest land
animal?\n(a) African bush elephant\n(b) Blue
Whale\n(c) Elephant\n(d) None of these\n\n TYPE
quit TO QUIT THE QUIZ\n\n\n")
answer_5 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_5):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_5,
"\n\n")
time.sleep(2)
#question number 6
question_6 = print("6) The world's heaviest flying
bird is the?\n(a) Swift\n(b) Hen\n(c) Great
Bustard\n(d) Griffon Vulture\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_6 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_6):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_6,
"\n\n")
time.sleep(2)
#question number 7
question_7 = print("7) What is the smallest breed
of dog in the world?\n(a) Terrier\n(b) Pug\n(c)
Chihuahua\n(d) None of the above\n\n TYPE quit
TO QUIT THE QUIZ\n\n\n")
answer_7 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_7):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_7,
"\n\n")
time.sleep(2)
#question number 8
question_8 = print("8) Patanwadi,a sheep breed
known for its hosiery wool quality,is native to?\n(a)
Maharashtra\n(b)
Kerala\n(c) Assam\n(d) Gujarat\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_8 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_8):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_8,
"\n\n")
time.sleep(2)
#question number 9
question_9 = print("9) The rearing of silkworms
for obtaining silk is knowm as?\n(a) Apiculture\n(b)
Horticulture\n(c) Sericulture\n(d) Silviculture\n\n
TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_9 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_9):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_9,
"\n\n")
time.sleep(2)
#question number 10
question_10 = print("10) In rural area cow dung is
used to coat the floor and wall to?\n(a) make them
smooth\n(b) make them rough for friction\n(c) give
a natural colour to the walls and floors\n(d) keep the
insects away\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_10 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_10):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_10,
"\n\n")
time.sleep(1)
if i==3:
Animals()
def Current_Affairs():
#question number 1
global score
question_1 = print("1)What is the annual budget
for FY22-23\n(a) 347Lakh Million\n(b) 458Lakh
Million\n(c) 295Lakh Million\n(d) 426Lakh
Million\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_1 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_1):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_1,
"\n\n")
time.sleep(2)
#question number 2
question_2 = print("2) Which Ministry has
amended the rules pertaining to location of thermal
power plants near cities and national capital region?
\n(a) Ministry of Home Affairs\n(b) Ministry of
Power\n(c) Ministry of Environment, Forest and
Climate Change\n(d) Ministry of New and
Renewable Energy\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_2 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_2):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_2,
"\n\n")
time.sleep(2)
#question number 3
question_3 = print("3) Which body permits
Telecommunication companies to conduct trials for
5G technology in India?\n(a) NITI Aayog\n(b)
Department of Telecommunications\n(c) TRAI\n(d)
Department of Science and Technology\n\n TYPE
quit TO QUIT THE QUIZ\n\n\n")
answer_3 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_3):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_3,
"\n\n")
time.sleep(2)
#question number 4
question_4 = print("4) Which country has
approved a grant of ₹265 crore for improving the
power supply of Andaman & Nicobar Islands?\n(a)
USA\n(b) Russia\n(c) Japan\n(d) China\n\n TYPE
quit TO QUIT THE QUIZ\n\n\n")
answer_4 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_4):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_4,
"\n\n")
time.sleep(2)
#question number 5
question_5 = print("5) Which State has announced
the creation of four new districts?\n(a) West
Bengal\n(b) Jharkhand\n(c) Telangana\n(d)
Chhattisgarh\n\n TYPE quit TO QUIT THE
QUIZ\n\n\n")
answer_5 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_5):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_5,
"\n\n")
time.sleep(2)
#question number 6
question_6 = print("6) Which hospital has become
the first hospital in the country to house a fire station
in its campus?\n(a) Tata Memorial Hospital,
Mumbai\n(b) AIIMS Delhi\n(c) NIMHANS,
Bengaluru\n(d) Lilavati Hospital, Mumbai\n\n
TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_6 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_6):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_6,
"\n\n")
time.sleep(2)
#question number 7
question_7 = print("7)Edayur and Kuttiattoor,
which were in news recently, belongs to which state?
\n(a) Andhra Pradesh\n(b) Kerala\n(c)
Karnataka\n(d) Tamil Nadu\n\n TYPE quit TO
QUIT THE QUIZ\n\n\n")
answer_7 = "b"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_7):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_7,
"\n\n")
time.sleep(2)
#question number 8
question_8 = print("8) Which state has
commenced a campaign named “10-day ‘All Mask’”
campaign??\n(a)Mizoram\n(b) Tamil Nadu\n(c)
Maharastra\n(d) Kerala\n\n TYPE quit
TO QUIT THE QUIZ\n\n\n")
answer_8 = "a"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_8):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_8,
"\n\n")
time.sleep(2)
#question number 9
question_9 = print("9) Which Indian state/UT is
set to launch the ‘Anti Open Burning Campaign’?
\n(a) Punjab\n(b) Haryana\n(c) Uttarpradesh\n(d)
Delhi\n\n TYPE quit TO QUIT THE QUIZ\n\n\n")
answer_9 = "d"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_9):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_9,
"\n\n")
time.sleep(2)
#question number 10
question_10 = print("10) Who is the Textile
Minister of India?\n(a) Shri Vijoy Kumar Singh\n(b)
Smt. Darshana Vikram Jardosh\n(c) Shri Piyush
Goyal\n(d) Shri Upendra Prasad Singh\n\n TYPE
quit TO QUIT THE QUIZ\n\n\n")
answer_10 = "c"
for i in range(chances):
answer = input("Answer: ")
if(answer.lower()=="quit"):
print ("BYE!!!!")
quit()
if (answer.lower() == answer_10):
print("Correct! Good Job.\n")
score = score + 1
break
else:
print("Incorrect!\n")
time.sleep(0.5)
print("The correct answer is", answer_10,
"\n\n")
time.sleep(0.50)
if i==4:
Current_Affairs()
if i>=5:
print("INSERT CORRECT CATEGORY NEXT
TIME")
time.sleep(0.50)
quit()
print(Fore.WHITE+"")
#print the score
while score >= 6:
print("Well done! Your score was", score)
break
while score <= 5:
print("Better luck next time! Your score was",
score)
break
#Goodbye message
print("Thank you for playing the Quiz Game!")
#conncting mysql
import pandas as pd
import pymysql
mydb=pymysql.connect(
host="localhost",
user="root",
password="123",
database="Lakshya")
mycursor=mydb.cursor()
m= score
q=(v,m)
s="insert into project (Name,Score) values(%s,%s)"
mycursor.execute(s,q)
mydb.commit()
cursor=mydb.cursor()
cursor.execute("select*from project")
myresult=cursor.fetchall()
a=pd.DataFrame(myresult,columns=
['Name','Score'])
print(a)
A=input("PRESS ENTER TO EXIT")
print(A)
7. USER MANUAL :-
1.) How to install Software :-
1.1) Hardware Requirement :-
PC with Intel(R) Pentium(R) processor or
similar processor based PC at Client/Server end.
2 GB RAM and 4 GB HDD space (for
Database) is desirable.
Standard I/O devices like Keyboard and Mouse
etc.
Printer is needed for hard-copy reports.
Local Area Network(LAN) is required for Client
Server Installation.
1.2) Software Requirement :-
Windows 10 OS is desirable.
Python Version 3.7 or higher should be installed.
MySQL Ver 6.1 with project data Database must
be present at machine.
2.) Working with Software :-
The software project is distributed with a backup
copy of a Database named Lakshya with required
table. Some dummy records are present in the table
for testing purposes, which can be deleted before
inserting real data. The project is shipped with
Lakshya.sql file which installs a database and tables
in the computer system.