Question: Write an interactive quiz. It should ask the user three multiple-choice or true/false questions about anything. It must keep track of how many they get

Write an interactive quiz. It should ask the user three multiple-choice or true/false questions about anything.

It must keep track of how many they get right, and print out a score at the end.

Your output should look like:

Are you ready for a quiz? X 
Okay, here it comes! Q1) What is the capital of Alaska? 1)Melbourne 2)Anchorage 3)Juneau 

> 3

Thats right! 
Q2) Can you store the value cat in a variable of type int? 
1)Yes 2)No 
> 1 
Sorry, cat is a string. ints can only store numbers. 
Q3) What is the result of 9+6/3? 
1)5 2)11 3)15/3 
> 2 
Thats correct! 
 Overall, you got 2 out of 3 correct. Thanks for playing! 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!