Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 37

Certificate

This is to certify that Jai Narayanan has


successfully completed Computer Project
towards partial completion of Practical
examination of AISSCE 2021 as prescribed by
CBSE.

Internal Examiner External Examiner

Principal

Acknowledgeme
nt
I wish to express my deep gratitude and
sincere thanks to all my teachers for
encouragement and the management for
providing all facilities to successfully complete
the project work.
I extend my sincere thanks to my principal;
and my Computer Science teacher, whose
valuable guidance helped to successfully
complete the project.
I extend my gratitude to my parents and
classmates for their valuable support and
time.

Contents
➢ Introduction
➢ Software and Hardware
Requirements
➢ Why Python?
➢ Design Work
➢ Code
➢ Output
➢ Bibliography

Quiz-Game
A simple quiz game made using python.
Game Instructions:
1.Total Number of genres=9
2.Number of questions in each genre=10
3.For correct answers mark (+1)
4.For wrong answers mark (0)
5.Answers to be given in lower-case only
6.For choose questions, options are
considered are answers
7.Believe in yourself and start the quiz and
try your best.
Available genres for the quiz are
> Cuisines > Automobiles
> Inventions > GK & Politics
> Technology > Astronomy
> Cinema > Sports

Why Python?
• Python is a widely used general-purpose,
high level programming language.
• It was initially designed by Guido van
Rossum in 1991 and developed by Python
Software Foundation. It was mainly
developed for emphasis on code
readability, and its syntax allows
programmers to express concepts in fewer
lines of code.
• Python is a programming language that
lets you work quickly and integrate
systems more efficiently.
• There are two major Python versions :
Python 2 and Python 3. Both are
quite different. Python 3 is used for this
project.

• Reason for increasing popularity:


1.Emphasis on code readability,
shorter codes, ease of writing
2.Programmers can express
logical concepts in fewer lines of code in
comparison to languages such as C++ or
Java.
3.Python supports multiple
programming paradigms, like
objectoriented, imperative and functional
programming or procedural.
4.There exists inbuilt functions for
almost all of the frequently used concepts.
5.Philosophy is “Simplicity is the
best”

Features of Python
Interpreted :
•There are no separate compilation and
execution steps like C and C++.
•Directly run the program from the source
code.
•Internally, Python converts the source code
into an intermediate form called byte codes,
which is then translated into native language
of specific computer to run it.
•No need to worry about linking and loading
with libraries, etc.
Platform Independent:
• Python programs can be developed and
executed on multiple operating system
platforms.
• Python can be used on Linux, Windows,
Macintosh, Solaris and many more.
• Free and Open Source; Redistributable
High-level Language:
•In Python, no need to take care about
lowlevel details such as managing the
memory used by the program.
Simple:
•Closer to English language. Easy to Learn
•More emphasis on the solution to the
problem rather than the syntax.
Embeddable:
•Python can be used within C/C++ program to
give scripting capabilities for the program’s
users.

SYSTEM SOFTWARE AND HARDWARE

SOFTWARE
The Software used to run the Python program are:
1. Ubuntu 16.04 / Windows 7.0 or later
2. Pydroid 3.0

HARDWARE
The hardware used to run the project are:
1. 2 GHz Dual Core Processor
2. 2 GB RAM
3. 128 GB HDD
4. Monitor with 1024 x 768 Screen Resolution.

CODE
name=input("ENTER YOUR NAME:")
print() age=int(input("ENTER YOUR
AGE:")) print() if age>=10:
print("YOU ARE ABSOLUTELY ELIGIBLE TO PLAY THE GAME") else:
print("YOU ARE NOT ABLE TO PLAY THE GAME BUT STILL GIVE A SHOT")
import csv first=["Name","Age"] second=[name,age]
file=open('report.csv','w') report=csv.writer(file)
report.writerow(first) report.writerow(second)
third=[“genre you choosed”,’marks obtained’]
report.writerow(third) print()
role=input("YOU ARE STUDENT/TEACHER/PLAYER:") if
role=="student":
print("THE PERSON PLAYING IS STUDENT")
elif role=="teacher": print("THE
PERSON PLAYING IS TEACHER") else:
print("THE PERSON PLAYING IS PLAYER")

print("----------------------------------------------------------------
----------------")
print("----------------------------------------------------------------
----------------") print()
print("RULES FOR THE GAME")
print("1.number of genre=9")
print("2.number of questions in each genre=10")
print("3.for correct questions mark +1")
print("4.for wrong questions mark 0")
print("5.answers to be given in small letters only") print("6.for
choose questions options are considered are answers")
print("7.believe in you and start the quiz and try your luck")
print()
genre=["cusines","inventions","technology","astronomy","automobiles",'c
inema','sports','gk' ,'politics'] print() print("Available genre for
the quiz is") for i in genre:
print('>',i)
print("================================================================
================") print("THE REAL FUN BEGINS NOW")
print("<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<><><><><><><><>")
print() def
cusines():
points=0
print("Q1.WHICH IS THE FOOD CAPITAL OF THE WORLD?")

print("OPTIONS ARE GIVEN BELOW")


print("a.italy") print("b.new
york") print("c.india")

print()
ans=input("give the answer:")
if ans=="b": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:new york")

print()
print("Q2.WHICH COUNTRY HAS THE BEST CUSINE IN THE WORLD")

print("OPTIONS ARE GIVEN BELOW")


print("a.brazil") print("b.new
york") print("c.italy")

print()
ans=input("give the answer:")
if ans=="c": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:italy") print()
print("Q3.WHAT IS THE FIRST HOTEL BUILT IN WORLD")
print("OPTIONS ARE GIVEN BELOW")
print("a.rosewood guangzhou,china")
print("b.nishiyama onsen keiunkan,japan")
print("c.olde bell hotel,england")

print()
ans=input("give the answer:")
if ans=="b": print()
print("hurray! you have given the correct answer")
is:nishiyama onsen keiunkan,japan")

print()
print("Q4.WHICH IS KNOWN AS( KING OF SPICES)?")

print("OPTIONS ARE GIVEN BELOW")


print("a.peppercorns")

points+=1
else:
print()
print("you have given the wrong answer and the correct
answer

print("b.cardamom") print("c.black
pepper")

print()
ans=input("give the answer:")
if ans=="c": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:black pepper")

print()
print("Q5.WHAT IS THE HOTTEST CANDY IN THE WORLD?")

print("OPTIONS ARE GIVEN BELOW")


print("a.ghost pepper jelly beans")
print("b.hot chilly peppermints") print("c.dark
devil circus peanut")

print()
ans=input("give the answer:")
if ans=="a": print()
print("hurray! you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:ghost pepper jelly beans ")

print()
print("Q6.WHAT IS THE NATIONAL FOOD OF MEXICO?")

print("OPTIONS ARE GIVEN BELOW")


print("a.roast goose")
print("b.feijoada") print("c.mole
sauce")

print()
ans=input("give the answer:")
if ans=="c":
print()
print("you have given the correct answer")
is:mole sauce")

print()
print("Q7.WHAT IS THE NATIONAL VEGETABLE OF INDIA?")
print("OPTIONS ARE GIVEN
BELOW") print("a.yellow
pumpkin") print("b.capsicum")
print("c.brinjal")

points+=1
else:
print()
print("you have given the wrong answer and the correct
answer

print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:yellow pumpkin")

print()
print("Q8.WHAT IS THE MAIN VITAMIN FOUND IN STRAWBERRY?")

print("OPTIONS ARE GIVEN BELOW")


print("a.vitamin-e") print("b.vitamin-c")
print("c.vitamin-a")

print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:vitamin-c")

print()
print("Q9.WHAT IS THE SECOND OLDEST RECIPE KNOWN TO HUMAN BEING?")

print("OPTIONS ARE GIVEN BELOW")


print("a.flat bread") print("b.nettle
pudding") print("c.sumerian beer")

print()
ans=input("give the answer:")
if ans=="c":
print()
print("you have given the correct answer")

points+=1
else:
print()
print("you have given the wrong answer and the correct
answer

is:sumerian beer")

print()
print("Q10.WHICH PART OF THE GINGER PLANT WE EAT?")

print("OPTIONS ARE GIVEN BELOW")


print("a.stem") print("b.branch")
print("c.root")

print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:stem") print()
print("the score you scored is:",points)
if points>=8: print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")

print("****************************************************************
*************************************")
print()
pt=['cusine', points]
report.writerow(pt)
def
inventions():
points=0

print("Q1.WHO DISCOVERED EXAMS?")

print("OPTIONS ARE GIVEN BELOW")


print("a.karl lannister") print("b.henry
a.fischel") print("c.hernan cortes")

print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:henry a.fischel")

print()
print("Q2.WHEN WAS GOOGLE FOUNDED?")

print("OPTIONS ARE GIVEN BELOW")


print("a.17/05/2002")
print("b.27/03/2000") print("c.4/9/1998")
print()
ans=input("give the answer:")
if ans=="c": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:4/9/1998")

print()
print("Q3.WHICH EMPIRE IVENETED THE FIRST WATER POWERED
MACHINES,THE WATER WHEEL AND WATERMILL?")

print("OPTIONS ARE GIVEN BELOW")


print("a.persian empire") print("b.mughal
empire") print("c.ottaman empire")

print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:persian empire")

print()
print("Q4.WHO INVENTED CLOCK")

print("OPTIONS ARE GIVEN BELOW")


print("a.john snow") print("b.christian
huygens") print("c.james lannister")

print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:christian huygens")

print()
print("Q5.WHICH COUNTRY INVENTED RUGBY?")

print("OPTIONS ARE GIVEN BELOW")


print("a.england") print("b.new
zealand") print("c.india")

print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:england")

print()
print("Q6.WHEN WAS CALENDAR INVENTED?")

print("OPTIONS ARE GIVEN BELOW")


print("a.1720") print("b.1640")
print("c.1582")

print()
ans=input("give the answer:")
if ans=="c": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1582") print()
print("Q7.WHICH DYNASTY INVENTED CHOPSTICKS?")

print("OPTIONS ARE GIVEN BELOW")


print("a.shang dynasty")
print("b.chen dynasty") print("c.liu
song dynasty")

print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:shang dynasty")

print()
print("Q8.WHEN WAS MAURITIUS DISCOVERED?")

print("OPTIONS ARE GIVEN BELOW")


print("a.1601-1607") print("b.1507-1513")
print("c.1433-1439")

print()
ans=input("give the answer:")
if ans=="b": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1507-1513")

print()
print("Q9.WHICH COUNTRY DISCOVERED THE PERIODIC TABLE?")

print("OPTIONS ARE GIVEN BELOW")


print("a.russia") print("b.indian")
print("c.british")
print()
ans=input("give the answer:")
if ans=="a": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:russia")

print()
print("Q10.WHO DISCOVERED VANILLA ICE CREAM ")

print("OPTIONS ARE GIVEN BELOW")


print("a.melissa fumero") print("b.andy
samberg") print("c.thomas jefferson")

print()
ans=input("give the answer:")
if ans=="c": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:thomas jefferson")

print()
print("the score you scored is:",points)
if points>=8: print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")

print("****************************************************************
*************************************")

print()
pt=['inventions', points]
report.writerow(pt)
def
technology():
points=0
print("Q1.WHAT WAS THE FIRST PHOTO POSTED ON INSTAGRAM?")
print()
ans=input("give the answer:")
if ans=="dog": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is: dog")
print()
print("Q2.WHAT PART OF A DATABASE THAT HOLD ONLY ONE TYPE OF
INFORMATION?")
print()
ans=input("give the answer:")
if ans=="field": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:field") print()
print("Q3.WHO DISCOVERED ARTIFICIAL INTELLIGENCE?")
print()
ans=input("give the answer:")
if ans=="alan turing":
print()
print("you have given the correct answer")
points+=1
else:
print()
print("you have given the wrong answer and the correct answer
is:alan turing")

print()
print("Q4.WHICH IS THE FIRST SEARCH ENGINE IN INTERNET?")
print()
ans=input("give the answer:")
if ans=="archie":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:archie")

print()
print("Q5.WHICH IS THE FIRST COMPUTER VIRUS?")
print()
ans=input("give the answer:")
if ans=="creeper virus":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:creeper virus")

print()
print("Q6.WHICH COMPANY FIRST INTRODUCED COMPUTER AHRD DISK IN
1956?")
print()
ans=input("give the answer:")
if ans=="ibm": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:ibm") print()
print("Q7.IN WHICH YEAR '@' WAS FIRST USED IN e-MAIL?")
print()
ans=input("give the answer:")
if ans=="1972": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1972")

print()
print("Q8.WHO IS THE FATHER OF JAVA?")
print()
ans=input("give the answer:")
if ans=="james gosling":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:james gosling")

print()
print("Q9.HOW MANY LAYERS ARE THERE IN TCP/IP PROTOCOL LAYERS?")
print()
ans=input("give the answer:")
if ans=="4" or "four":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:4/four")

print()
print("Q10.WHO IS THE FATHER OF ARTIFICIAL INTELLIGENCE?")
print()
ans=input("give the answer:")
if ans=="john mccarthy":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:john mccarthy")

print()
print("the score you scored is:",points)
if points>=8: print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")
print("****************************************************************
*************************************")
pt=['technology', points] report.writerow(pt)

def
astronomy():
points=0

print("Q1.WHICH RAM DID NASA USE WHILE LANDING IN MOON?")


print()
ans=input("give the answer:")
if ans=="4kb": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:4kb") print()
print("Q2.WHAT GAS IS MAINLY FOUND IN VENUS?")
print()
ans=input("give the answer:")
if ans=="phosphine":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:phosphine")

print()
print("Q3.WHO INVENTED TELESCOPE?")
print()
ans=input("give the answer:")
if ans=="hans lippershey":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:hans lippershey")
print() print("Q4.WHICH TERM DESCRIBES THE ALIGNMENT OF 3
CELESTIAL BODIES?
")
print()
ans=input("give the answer:")
if ans=="syzygy":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:syzygy")

print()
print("Q5.W
HICH IS THE
NAME OF THE
RADIO
SOURCE THAT
IS VERY FAR
FROM EARTH?")
print()
ans=input("give the answer:")
if ans=="quasar":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:quasar")

print()
print("Q6.WHEN DID THE SPACE AGE BEGIN?")
print()
ans=input("give the answer:")
if ans=="1957": print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:1957") print()
print("Q7.HOW MANY PEOPLE ARE ALLOWED TO TRAVEL IN GAGANYAAN?")
print()
ans=input("give the answer:")
if ans=="3" or "three":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:3/three")

print()
print("Q8.WHO IS THE FIRST SPACE TOURIST?")
print()
ans=input("give the answer:")
if ans=="dennis tito":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:dennis tito")

print()
print("Q9.WHERE IS THE SECOND SPACEPORTS LOCATED IN INDIA?")
print()
ans=input("give the answer:")
if ans=="kulasekarapattinam":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:kulasekarapattinam")

print()
print("Q10.WHO IS THE FIRST PERSON TO WALK IN SPACE?")
print()
ans=input("give the answer:")
if ans=="cosmonaut alexei leonov":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:cosmonaut alexei leonov")

print()
print("the score you scored is:",points)
if
points>=8:
print()
print("you are shining like a star")
elif points>=7: print()
print("try to shine like a star ")
else:
print()
print("put more effort to shine like a star")

print("****************************************************************
*************************************")
pt=['astronomy', points] report.writerow(pt)
def
automobiles():
points=0

print("Q1.WHAT IS THE GDP CONTRIBUTION OF AUTOMOBILE INDUSTRY IN


INDIA DURING 2018-2019?")
print()
ans=input("give the answer:")
if ans=="7.5%" or "7.5 percent":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:7.5%/7.5 percent")

print()
print("Q2.SEAT,SKODA AND AUDI ARE THE SISTER COMPANIES OF WHICH
COMPANY?") print()
ans=input("gi
ve the
answer:")
if
ans=="volkswa
gen":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:volkswagen")

print()
print("Q3.WHICH COMPANY PRODUCED THE FIRST AUTOMATIC CAR?")
print()
ans=input("give the answer:")
if ans=="general motors":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:general motors")

print()
print("Q4.WHO INVENTED THE FIRST MOUNTAIN BIKE? ")
print()
ans=input("give the answer:")
if ans=="joe breeze":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:joe breeze")

print()
print("Q5.NAME THE FIRST DIESEL BIKE?")
print()
ans=input("give the answer:")
if ans=="royal enfield tauras":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:royal enfield tauras")

print()
print("Q6.WHO INVENTED CAR THAT RUNS ON WATER? ")
print()
ans=input("give the answer:")
if ans=="stanley allen meyer":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:stanley allen meyer")
print()
print("Q7.WHAT IS THE FIRST PRODUCT DESIGNED BY PIAGGIO?")
print()
ans=input("give the answer:")
if ans=="fighter plane":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:fighter plane")

print()
print("Q8.NAME THE COMPANY WHICH WAS FIRST IN THE PRODUCTION OF
AUTOMOBILE IN INDIA? ")
print()
ans=input("give the answer:")
if ans=="hindustan":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:hindustan")

print()
print("Q9.HOW MANY GEARS ARE THERE IN MODEL T FORD?")
print()
ans=input("give the answer:")
if ans=="2" or "two":
print()
print("you have given the correct answer")
points+=1 else:
print()
print("you have given the wrong answer and the correct answer
is:2/two")
print()
print("Q10.WHICH COMPANY LAUNCHED MOPEDS IN INDIA?")
print()
ans=input("give the answer:") if
ans=="automobile products of india":
print()
print("you have given the correct answer")
points+=1 else: print()
print("you have given the wrong answer and the correct answer
is:automobile products of india")
print()
print("
the
score
you
scored
is:",po
ints)
if
points>
=8:
print()
print("you are shining like a star")
elif points>=7:
print()
print("try to shine like a star ")
else: print()
print("put more effort to shine like a star")

print("****************************************************************
****************")

def cinema():
points=0
print('Q.1) Which was the first Indian movie nominated for
Oscar?')
ans=input("ans:")
if ans=='mother india':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Mother
India")

print()
print('Q.2) Which was the first Indian movie to win an Oscar?')

ans=input("ans:")
if
ans=="gandhi":
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER, Correct answer is
Gandhi") print()
print('Q.3) Which is the highest grossing Indian film ever?')
ans=input("ans:") if ans=='dangal': print('hurray! you
have given the correct answer') points+=1 else:
print("WRONG ANSWER,Correct answer is Dangal") print()
print('Q.4) Which was the first Color movie in India?')

ans=input("ans:")
if ans=='kisan kanya':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Kisan
Kanya")

print()
print("Q.5) Who got first Oscar award in India?")
ans=input("ans:") if ans==' bhanu athaiya':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Bhanu
Athaiya")

print()
print('Q.6) Which actor has won the most national awards in
India?')
ans=input("ans:") if
ans=='shah rukh khan':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Shah Rukh
Khan")

print()
print('Q.7) Who was the director of the famous movie
â€S̃holay’?')
ans=input("ans:") if
ans==' ramesh sippy':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Ramesh
Sippy")

print()
print('Q.8) Who was the director of the famous movie â€M̃other
India’?')
ans=input("ans:")
if ans==' mehboob khan':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is Mehboob Khan")

print('Q.9) How many Oscar awards was won by â€S̃lumdog


Millionaire’ movie?')

ans=input("ans:")
if ans=='8':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is 8")

print('Q.10) How many times AR Rahman was nominated for Oscar?')

ans=input("ans:")
if ans=='2':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is 2")
if points>=7: print('YOU SCORED
',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE') elif
points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME')
else:
print('YOU SCORED',points,'YOU NEED TO LEARN ALOT')
pt=['cinema', points] report.writerow(pt) def sports():
points=0 print('Q.1) Which cricket team has won the 2017
Vijay Hazare
Trophy?')
print('a) Karnataka b)Gujarat')

print('c)Jharkhand d)Tamil Nadu')


ans=input("ans:") if ans=='d':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is d")

print()
print('Q.2)The 2017 National Sports Day (NSD) is celebrated on
which day in India?')

print('a)August 28 b) August 29 c) August 26 d)August 27')

ans=input("ans:")
if ans=='b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is b")

print()
print('Q.3) What does the Olympic Flame symbolize?')

print('a)zeal to play sports b) Challenge c)Continuity d)


Integrity')
ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")

print()
print('Q.4) The Commonwealth Games started from which among the
following countries?')

print(' a) England b) Australia c)Canada d)India')

ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")

print()
print('Q.5) Who among the following was the First Indian Cricketer
to bag 500 wickets in Test matches?')

print(' a)Kapil Dev b) Srinath c) Anil Kumble d) Harbhajan


Singh')
ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")

print()
print('Q.6) Jules Rimet Trophy is related to which of the
following sports?')

print(' a)Hockey b)Cricket c)Football d) Volley ball')

ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")

print()
print('Q.7) Omega Mission Hills World Cup is related to which
game?')
print(' a)Tennis b)Golf c)Hockey d) Polo')

ans=input("ans:")
if ans=='b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is b")

print()
print('Q.8) Who among the following has written the book
“Cricket My Style―?')

print(' a)Sunil Gavaskar b) Anil Kumble c) Kapil Dev d)None of


them')
ans=input("ans:")
if ans=='c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is c")

print()
print('Q.9) What is the other name of Salt Lake Stadium ?')

print(' a)Yuba Bharti Stadium b)Bharat Bharti Stadium c)Eden


Gardens d)Kolkata Stadium')

ans=input("ans:")
if ans=='a':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is a")

print()
print('Q.10) Which of the following Indian Sports Team is also
known as “The Bhangra Boys?')

print(' a) Cricket Team b) Hockey Team c)Kabaddi Team


d)Football Team')
ans=input("ans:")
if ans=='d':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG OPTION,Correct answer is d")
print() if points>=7: print('YOU
SCORED ',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE') elif points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME') else: print('YOU
SCORED',points,'YOU NEED TO LEARN ALOT') pt=['sports',
points] report.writerow(pt) def gk(): points=0
print('Q.1) Who was the first Indian woman in Space?')

ans=input("ans:") if
ans== 'kalpana chawla':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Kalpana
Chawla")
print()
print('Q.2)
Who was the
first
Indian in
space?')
ans=input("ans:")
if ans== 'rakesh sharma':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Rakesh
Sharma")

print()
print('Q.3) Who was the first Man to Climb Mount Everest Without
Oxygen?')
ans=input("ans:")
if ans== 'phu dorji':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Phu
Dorji")

print()
print('Q.4) Who built the Jama Masjid?')

ans=input("ans:")
if ans== 'shah jahan':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Shaa
Jahan")

print()
print('Q.5) Who wrote the Indian National Anthem?')
ans=input("ans:") if ans==
'rabindranath tagore':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is Rabindranath
Tagore")

print()
print('Q.6) Who was the first Indian Scientist to win a Nobel
Prize?')
ans=input("ans:")
if ans== 'cv raman':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is CV
Raman")

print()
print('Q.7) Who is the first Indian to win a Nobel Prize?')

ans=input("ans:") if ans==
'rabindranath tagore':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is
Rabintranath Tagore")

print()
print('Q.8) Who was the first Indian woman to win the Miss World
Title?')
ans=input("ans:")
if ans== 'reita faria':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is Reita Faria")

print()

print('Q.9)Entomology is the science that studies?')

ans=input("ans:")
if ans== 'insects':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is insects")

print()

print('Q.10)Eritrea, which became the 182nd member of the UN in


1993, is in the continent of?')

ans=input('ans:')
if ans==
'africa':
points+=1
print("hurray! you have given the correct answer")
else:
print("WRONG ANSWER,Correct answer is Africa")

print()
if
points>=7:
print('YOU SCORED ',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE') elif points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME') else: print('YOU
SCORED',points,'YOU NEED TO LEARN ALOT')
pt=['Gk',
points]
report.writerow(pt) def
politics(): points=0
print('Q.1). Abdul Kalam Azad became the ____ President of
India.')
print('a) 9th b)10th c)11th d)12th')
ans=input("ans:") if ans== 'c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is c")

print()
print('Q.2) The 13th Prime Minister of India was ?')

print('a) Atal Bihari Vajpayee b)I.K. Gujral c) Dr. Manmohan


Singh d)D. P. V. Narasimha Rao')

ans=input("ans:")
if ans== 'a':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is a")

print()
print('Q.3) Who was the President of the Constitutional Committee
and played an important role in drafting the Constitution?')

print('a) Dr. B.R. Ambedkar b) Mahatma Gandhi c)Both A & B


d)None')
ans=input("ans:")
if ans== 'a':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is a")

print()
print('Q.4) Who prevailed in the 1977 elections and ended Indira
Gandhi’s emergency rule?')
print(' a)Atal Bihari Vajpayee b) Morarji Desai c)Charan Singh
d) Lal Bahudar Shastri')
ans=input("ans:")
if ans== 'b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is b")

print()
print('Q.5)Who among the following assassinated Mahatma Gandhi?')

print('a)Karamchand b) Nathuram Godse c)Ashfaquallah Khan d)


None of the Above')

ans=input("ans:")
if ans== 'b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is b")

print()
print('Q.6)Who was the first Indian woman President of the United
Nations General Assembly?')

print('a)Vijaya Lakshmi Pandit b)Indira Gandhi c)Mother Teresa


d)Margret Thatcher')
ans=input("ans:")
if ans== 'a':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER, Correct answer is a")

print()
print('Q.7)Which of the following India’s first women-oriented
bank aimed at providing loans and financial services to women?')

print("A. Bharatiya Women's Bank b) Bharatiya Mahila Bank c)


Women Empowerment Bank d)Indian Women Empowerment Bank")

ans=input("ans:")
if ans== 'b':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is b ")

print()
print('Q.8)Who was the first female to become the governor of an
Indian state?')
print('a) Subba Lakshmi b)Padmaja Naidu c)Sarojini Naidu
d)Vijaya Lakshmi Pandit')
ans=input("ans:")
if ans== 'c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is c")
print()
print("Q.9) Who was India's first Indian woman Ambassador (or High
Commissioner)?")

print('a) Chandrawati b) Ram Dulari Sinha c) Sharda Mukherjee


d) Chonira Belliappa Muthamma')
ans=input("ans:") if
ans== 'd':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is d")

print()
print('Q.10) Who among first Woman to climb Mount Everest
twice?')
print('a) Mrs. Meera Sahib Fatima Bibi b)C.B. Muthamma
c)Santosh Yadav d) Mrs. Annie Besant')
ans=input("ans:")
if ans== 'c':
points+=1
print("hurray! you have given the correct answer")
else: print("WRONG ANSWER,Correct answer is c")
print() if points>=7: print('YOU
SCORED ',points,'CONGRATS, YOU ARE REALLY
KNOWLEGDABLE')
elif points>= 4 and points<6:
print('YOU SCORED',points,'YOU CAN DO IT, BETTER LUCK NEXT
TIME') else: print('YOU
SCORED',points,'YOU NEED TO LEARN ALOT')

pt=['politics', points]
report.writerow(pt)

gen=input("ALLOW PLAYER TO SELECT HIS REQUIRED GENRE:") if


gen=="cusines":
cusines() elif
gen=="automobiles":
automobiles() elif
gen=="technology":
technology() elif
gen=="inventions":
inventions() elif
gen=="astronomy":
astronomy() elif
gen=='cinema':
cinema() elif
gen=='gk':
gk() elif
gen=='sports':
sports() elif
gen=='politics':
politics() else: print("the genre you
choosed is not available") ans=’y’ while ans==’y’
tryy=input("would you like to have fun again (y/n):")
if tryy=="y": gen=input("ALLOW PLAYER TO
SELECT HIS GENRE::") if gen=="cusines":
cusines() elif gen=="automobiles":
automobiles()
elif gen=="technology":
technology()
elif gen=="inventions":
inventions()
elif gen=="astronomy":
astronomy()
elif gen=='cinema':
cinema()
elif gen=='gk':
gk() elif
gen=='sports':
sports()
elif gen=='politics':
politics() else: print(" sorry:the genre you
searched is not available in our program") else:
print("thanks for playing:hope you enjoy it")
ans=’n’ print() file.close()
file=open('report.csv','r')
report=csv.reader(file) print('Here are the
report') for i in report: print(i)
ratings=input("enter a rating upto 5 for this quiz:") if
ratings=='0':
print("sorry for making you feel bad.we will improve our quiz")
elif ratings=='1':
print("we did our level best,sorry for not satisfying you") elif
ratings=='2':
print("thanks for saying it we will improve ") elif
ratings=='5':
print("hurray! we did something that you enjoyed") elif
ratings=='3':
print("the ratings you have given is very convincing for us")
elif ratings=='4': print("still try to keep your hope on our
game") else:
print("please control your emotions and give ratings upto 5")
input("please give a rating upto 5 now:") print("!!!THANK YOU
FOR PLAYING!!!")
print("################################################################

################")
OUTPUT
Bibliography
➢ www.jagranjosh.com
➢ www.daytodaygk.com
➢ www.gktoday.in
➢ www.geeksforgeeks.com

You might also like