Program a quiz in Python to give certain different scearios to use, involving the SMART rules and ask them how they shoudl respond giving them options what they should do. It will be an adventure game or escape room type program where to get to the end they must choose the correct options through the different questions.
# Internet Safety Quiz
# Complete the missing code to make the quiz work!
print("=================================")
print(" INTERNET SAFETY QUIZ")
print("=================================")
# Score starts at 0
score = 0
# ---------------------------
# Question 1
# ---------------------------
print("\nQuestion 1")
print("Is it safe to share your password with friends?")
print("A. Yes")
print("B. No")
answer = input("Enter A or B: ")
if answer.upper() == "B":
print("Correct!")
score = score + 1
else:
print("Incorrect. Passwords should stay private.")
print("Quiz End")
quit()
# ---------------------------
# Question 2
# ---------------------------
print("\nQuestion 2")
print("What should you do if a stranger messages you online?")
print("A. Reply to them")
print("B. Ignore them and tell a trusted adult")
answer = input("Enter A or B: ")
# COMPLETE THE IF STATEMENT
if __________________:
print("Correct!")
score = score + 1
else:
print("Incorrect. Do not reply to strangers.")
print("Quiz End")
quit()
# ---------------------------
# Question 3
# ---------------------------
print("\nQuestion 3")
print("Is it okay to meet someone you met online in person?")
print("A. Yes")
print("B. No")
answer = input("Enter A or B: ")
# COMPLETE THIS SECTION
if __________________:
print("Correct!")
__________________
else:
print("Incorrect. Meeting strangers can be dangerous.")
quit()
# ---------------------------
# Question 4
# ---------------------------
print("\nQuestion 4")
print("What should you do if you see something online that makes you uncomfortable?")
print("A. Keep it to yourself")
print("B. Tell a trusted adult")
answer = input("Enter A or B: ")
# COMPLETE THIS SECTION
if __________________:
print("Correct!")
__________________
else:
print("Incorrect.")
quit()
# ---------------------------
# Question 5
# ---------------------------
print("\nQuestion 5")
print("What makes a strong password?")
print("A. Your name")
print("B. A mix of letters, numbers and symbols")
answer = input("Enter A or B: ")
# COMPLETE THIS SECTION
if __________________:
print("Correct!")
__________________
else:
print("Incorrect.")
quit()
# ---------------------------
# End of Quiz
# ---------------------------
print("\nCongratulations!")
print("You completed the Internet Safety Quiz!")
print("Your score is:", score, "/ 5")
# Challenge:
# Add a message depending on the score.
#
# Example:
# 5 = Internet Safety Champion
# 4 = Great Work
# 3 = Good Effort
#
# Write your own IF statements below.