Professional Documents
Culture Documents
Projecquiz
Projecquiz
INVESTIGATORY FILE
TOPIC-“QUIZ GAME, WITH PYTHON ”
SUBMITTED TO:-
MRS.SANGEETA M. CHAUHAN
SUBMITTED BY:-
MAYANK AND M.CHAITANYA
INTRODUCTION
My project on ‘QUIZ GAME’ is quiz game
which is used to check intelligence of the
user .This game contain a lot of
questions, this game is really
entertaining and knowledgeable for the
user.
This quiz game is made with python
programming language, n this game the
questions are about basic general
knowledge , AT the per right answer the
fixed points are given and no negative
marking is there
I used many modules in this game, most
of them are basic modules but some are
made by the my teacher, to make to the
game user friendly and attractive.
ACKNOWLEDGEMENT
In the accomplishment of this project sucessfully. Many people
have best owned upon me their blessings and the heart pledge
support, this time iam utilizing to thank all the people who have
been concerned with project.
Primarily I would thank god for being able to complete this
project success. Then I would like to thank my principle Mr.
Raghvendra Lalsantania and teacher Mrs. Sangeeta M. Chauhan
whose valuable guidance has been ones that helped me patch
project and make it full proof success his suggestions and his
instructions has serve as the major contribution towards the
completion of the project.
Then I would like to thank my parents and friends who have
helped me with their valuable suggestions and guidance has been
helpful in various phases of the completion of the project
CERTIFICATE
This is certified that Mayank Bisht of class XI ’C’ has successfully
completed his project under the guidance of I.P teacher Mrs.
Sangeeta M. Chauhan, she has shown utmost care and sincerity
during the completion of this project. His project is as per the
instructions issued by Central Board Of Secondary Education
(C.B.S.E) 2019-2020.
Signature of Teacher
(Mrs Sangeeta M.Chauhan)
from playsound import playsound
import sys
import colorcode as c
color = sys.stdout.shell
import time
import numpy as np
p=np.array([0])
print("")
color.write("****************************************WELCOME*************************************
***",c.purple)
playsound("kbc.mp3")
color.write("RULES For the game \n (1). Here are 10 questions \n (2).Each question
contains 10 points \n",c.red,)
if(x=="easy" or x=="1"):
playsound("drums.mp3")
p=p+10
else:
playsound("abe.mp3")
print("\n ------------------------------------------------------------------------------------")
playsound("drums.mp3")
#------------------------------------------------------------------------------------------------------------------------
------------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")\
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#------------------------------------------------------------------------------------------------------------------------
------------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
#----------------------------------------------------------------------------------------------------------------------
--------------------------------------------------
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q11=input("\n\n(Q11).What is the recrod time for longest lasted kiss ever done--
?\n(a)59hours 30minutes and 22seconds\t\t\t (b). 60hours 30minutes and 23seconds
\n (c).58hours 35minutes and 58seconds\t\t\t(d).nome of these \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q15=input("\n\n(Q15).Which is the longest river in the world?\n(a)Nile \t\t\t (b).Ganga
\n (c).amazon river\t\t\t(d).Yangtze \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#------------------------------------------------------------------------------------------------------------------------
------------------------------------------------
q18=input("\n\n(Q18).Which is the first city in the world that an atomic bomb was
dropped?\n(a)Nagasaki \t\t\t (b).Hiroshima \n (c).Transalvenia\t\t\t(d).France \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
elif(x=="moderate" or x=="2"):
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q5=input("\n (Q5).The central goverment announced a new and seperate railway zone
named ----?\n(a).South coast railway \t\t\t (b).east coast railway\n (c).northern
railway\t\t\t (d).none of these\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q6=input("\n (Q6).PM Narendra modi flagged off India's first semi-high speed train
named----- ?\n(a).The Ranikhet Express \t\t\t (b).The Tamil Nadu Express\n (c).The
Vande bharat express\t\t\t (d).Delhi\n")
if(q6=="c" or q6=="the vande bharat express " or q6=="The Vande Bharat Express "):
p=p+10
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q8=input("\n (Q8).Who become the first woman cricketer of the world to play 200
ODIs?\n (a).Marry Suzen \t\t\t (b).Sunita Arora\n (c).Mithali Raj\t\t\t (d).none of these\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q10=input("\n (Q10).Who are the recipients of the Bharat Ratna in 2019?\n (a).Pranab
mukherji \t\t\t (b).Nanaji deshmukh \n (c).Bhpen Hazarika\t\t\t (d).All of these\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
color.write("wrong answer \n correct answer is \n No Duck's can't walk without
Bobbing its head",c.red)
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
=="India"):
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q18=input("\n\n(Q18).Which is the longest bridge in yhe world?\n(a).Golden gate
bridge \t\t\t (b).Danyang-Kunshan Grand Bridge \n (c).viaduc de millau\t\t\t(d).Akashi-
Kaikyo Bridge\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q19=input("\n\n(Q19).Which is the rarest blood group in the world ?\n(a)A- \t\t\t (b).O-
\n (c).RH-NULL\t\t\t(d).AB- \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q20=input("\n\n(Q20).What is the weight of CONSTITUTION OF INDIA?
?\n(a)13.25kg\t\t\t (b).13.00kg \n (c).12.99kg\t\t\t (d).13.55kg \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#------------------------------------------------------------------------------------------------------------------------
------------------------------------------------
elif(x=="3"or x=="hard"):
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q2=input("\n (Q2).Who has been elected the new chairman of African Union ?
\n(a)Sameulson. \t\t\t (b).Reema bint Bandar bin Sultan \n (c).Abdel Fattah el-Sisi\t\t\t
(d).none of these\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q3=input("\n (Q3).Hindi has been included as the third official language in-----? \n
(a).America \t\t\t (b).Pakistan \n (c).Abu Dhabi\t\t\t (d).None of these\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q5=input("\n (Q5).Which film was adjudged the best film in the 91st OSKAR Awards
In2019? \n (a).NEWTAN \t\t\t (b.Blackhawk Dawn \n(c).Olyympus Has Fallen\t\t\t
(d).Green Book\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q6=input("\n (Q6).Who has been honoured with the Laureus Sportsman of the year
honour,2019 ? \n (a).Sania Nehwal \t\t\t (b.Geeta Phogat \n (c).Novak Djokovic\t\t\t
(d).Will Smith\n")
p=p+10
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q9=input("\n (Q9).Luminous bodies moving round the sun with a tail of luminous
mattter ? \n (a).Asteroids \t\t\t (b.Comets\n (c).Meteriods\t\t\t (d).Nebula\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q10=input("\n (Q10).Living matter present in the cells of animals and vegetable life ?
\n (a).Protoplasm \t\t\t (b.Lysosomes \n(c).Cellwall\t\t\t (d).None of these\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q11=input("\n (Q11).When the fdirst bicycle was invented?\n (a).1817 \t\t\t (b).1813 \n
(c).1819\t\t\t (d).2000%\n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#------------------------------------------------------------------------------------------------------------------------
------------------------------------------------
q13=input("\n\n(Q13).Which country in the world where only 27 people
live?\n(a)Iceland \t\t\t (b).Sealand \n (c).Vatican city\t\t(d).Ducktown \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
q20=input("\n\n(Q20).Who inventedTea? ?\n(a)Nung shi\t\t\t (b).Shen Nung \n
(c).Shen fu\t\t\t (d).None of these \n")
p=p+10
else:
playsound("abe.mp3")
print("\n------------------------------------------------------------------------------------")
playsound("drums.mp3")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
else:
print("ERROR")
print("------------------------------------------x------------------------------------------")
#-------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------
*****************************************OUTPUT For LEVEL EASY********************************
---------------------------------------------------------------------------------------------------------------------------
************************************OUTPUT For LEVEL MODERATE*****************************
---------------------------------------------------------------------------------------------------------------------------
************************************OUTPUT For LEVEL HARD*****************************
---------------------------------------------------------------------------------------------------------------------------