I am a student of 10th grade,I live in United Arab Emirates(UAE), I am 15 years old, I like to play games(indoors/outdoors), I like playing chess, and am an enthusiastic reader and in my free time I love doing puzzles. I have decided to learn coding since it would be beneficial in real life.
Manmeet Singh's project details:
I made a quiz on the topic computers. With my quiz you can check how much you know about computers. The quiz consists of 5 question. You get +10 points for each correct answer and +0 points for incorrect answer. Have fun answering my quiz.
score = 0
print("Manmeet Quiz Programme")
print("Lets play a quiz about computers")
print("-------------------")
print("")
print("There are 7 questions. Each question has 4 options. Select the right answer. ")
print("Each correct answer you get 10 marks ")
print("..........")
print("Let's start")
#Repeat Start
print("Q1 : Who invented computer? ")
print("a : John Mauchly ")
print("b : N.put ")
print("c : Q.R.cowde ")
print("d : W.B.Camero ")
print("-------------------")
print("")
q1val = input("Enter answer as a or b or c or d ")
if(q1val=='a'):
print("Yeah you are right. Amazing")
score = score + 10
else:
print("oh. Sorry it is wrong answer")
print("Correct answer is a. John mauchly ")
print ("Better luck next time")
print("-------------------")
print("")
print("Your score is ", score)
#Repeat End
#Repeat Start
print("Q2 : Which of the following is not a storage device? ")
print("a : DVD ")
print("b : Hard Disk ")
print("c : Mouse ")
print("d : Floppy Disk ")
print("-------------------")
print("")
q2val = input("Enter answer as a or b or c or d ")
if(q2val=='c'):
print("Yeah you are right. Amazing")
score = score + 10
else:
print("oh. Sorry it is wrong answer")
print("Correct answer is Mouse")
print ("Better luck next time")
print("-------------------")
print("")
print("Your score is ", score)
#Repeat End
#Repeat Start
print("Q3 : .PNG refers to ")
print("a : Movie/animation file ")
print("b : Audio file ")
print("c : Image file ")
print("d : MS office document ")
print("-------------------")
print("")
q3val = input("Enter answer as a or b or c or d ")
if(q3val=='c'):
print("Yeah you are right. Amazing")
score = score + 10
else:
print("oh. Sorry it is wrong answer")
print("Correct answer is Image file ")
print ("Better luck next time")
print("-------------------")
print("")
print("Your score is ", score)
#Repeat End
#Repeat Start
print("Q4 : Eight Bits make up a ")
print("a : megabyte ")
print("b : kilobyte ")
print("c : none ")
print("d : byte ")
print("-------------------")
print("")
q4val = input("Enter answer as a or b or c or d")
if(q4val=='d'):
print("Yeah you are right. Amazing")
score = score + 10
else:
print("oh. Sorry it is wrong answer")
print("Correct answer is byte")
print ("Better luck next time")
print("-------------------")
print("")
print("Your score is ", score)
#Repeat End
#Repeat Start
print("Q5 : True or false: Computers are really important for everyone nowadays. ")
print("a : True ")
print("b : False ")
print("-------------------")
print("")
q5val = input("Enter answer as a or b")
if(q5val=='a'):
print("Yeah you are right. Amazing")
score = score + 10
else:
print("oh. Sorry it is wrong answer")
print("Correct answer is True")
print ("Better luck next time")
print("-------------------")
print("")
print("Your score is ", score)