print('''My name is samarth,I am 16 years old. And this is my project''')
print('''This project is to test the knowledege on computers''')
print('''This project contains 6 Questions each carries 10 marks''')
print("\n")
score=0
#Question no.1
print('''When was the first computer invented?''')
print('''1.1988
2.1936
3.1999
4.1974''')
user_answer=input("Choose the correct answer as 1.,2.,3.,4.")
correct_answer="1"
if user_answer==correct_answer:
print("The Answer is correct,you earned ten points")
score=score+10
else:
print('''Sorry the answer is incorrect :( the correct answer was 1.1988''')
print("your score is",score)
print("\n")
#Question no.2
print('''What is a input device?''')
print('''1.Mouse
2.Keyboard
3.Both
4.None of above''')
user_answer=input("Choose the correct answer as 1.,2.,3.,4.")
correct_answer="3"
if user_answer==correct_answer:
print("The Answer is correct,you earned ten points")
score=score+10
else:
print('''Sorry the answer is incorrect :( the correct answer was 3.''')
print("your score is",score)
print("\n")
#Question no.3
print('''what is a Display?''')
print('''1.Input
2.Output
3.Both
4.None of above''')
user_answer=input("Choose the correct answer as 1.,2.,3.,4.")
correct_answer="2"
if user_answer==correct_answer:
print("The Answer is correct,you earned ten points")
score=score+10
else:
print('''Sorry the answer is incorrect :( the correct answer was 2.''')
print("your score is",score)
print("\n")
#Question no.4
print('''what is a Processor called in the computer?''')
print('''1.GPU
2.RAM
3.PSU
4.CPU''')
user_answer=input("Choose the correct answer as 1.,2.,3.,4.")
correct_answer="4"
if user_answer==correct_answer:
print("The Answer is correct,you earned ten points")
score=score+10
else:
print('''Sorry the answer is incorrect :( the correct answer was 4.''')
print("your score is",score)
print("\n")
#Question no.5
print('''How is information displayed on a computer?''')
print('''1.CLI
2.GUL
3.Both
4.None of above''')
user_answer=input("Choose the correct answer as 1.,2.,3.,4.")
correct_answer="3"
if user_answer==correct_answer:
print("The Answer is correct,you earned ten points")
score=score+10
else:
print('''Sorry the answer is incorrect :( the correct answer was 3.''')
print("\n")
print("Thankyou for attending my quiz on computers 😊 ")
print("your final score is",score)