questions = \
{
"1. Simulations will always have the same result": {
"A": "True",
"B": "False"
},
"2. A simulation has results that are more accurate than an experiment": {
"A": "True",
"B": "False"
},
"3. A simulation can model real world events that are not practical for experiments": {
"A": "True",
"B": "False"
},
"4. Which one of these is FALSE regarding simulations": {
"A": "Reduces Costs",
"B": "Is safer than real life experiments",
"C": "More Efficient",
"D": "More accurate than real life experiments"
},
"5. Which of the following scenarios would be the LEAST beneficial to have as a simulation": {
"A": "A retail company wants to identify the item which sold the most on their website",
"B": "A restaurant wants to determine if the use of robots will increase efficiency",
"C": "An insurance company wants to study the impact of rain on car accidents",
"D": "A sports car company wants to study design changes to their new bike design "
},
"6. Which of the following is better to do as a simulation than as a calculation": {
"A": "Keeping score at a basketball game",
"B": "Keeping track of how many games a person has won",
"C": "Determining the average grade for a group of tests",
"D": "Studying the impact of carbon emissions on the environment"
}
}
print("\nSimulations Quiz")
prompt = ">>> "
correct_options = ['D', 'C', 'D', 'B', 'A']
score_count = 0
for correct_option, (question, options) in zip(correct_options, questions.items()):
print("\n", question, "\n")
for option, answer in options.items():
print(option, ":", answer)
choice = str(input(prompt))
if choice.upper() == correct_option:
score_count = score_count + 1
print("Your score is:")
print(score_count)