Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a quiz program using all the questions and answers provided below You're 3rd place right now in a race. What place are you in

Create a quiz program using all the questions and answers provided below

You're 3rd place right now in a race. What place are you in when you pass the person in 2nd place?

1st

2nd

3rd

4th

How many months have 28 days?

All of them.

1

Depends if there's a leap year or not.

2

If a leaf falls to the ground in a forest and no one hears it, does it make a sound?

Yes

No

Depends on how heavy the leaf was.

Depends on what's on the floor

There are 45 apples in your basket. You take three apples out of the basket. How many apples are left?

45

3

42

0

Mathew's father has three sons- Joseph I and Joseph II. Can you guess the name of the third son?

Mathew

Joseph III

Jerin

John

What is the name of the company that published the Mario Kart video game?

Nintendo

Electronic Arts (EA)

SEGA

Xbox

  • Show the correct answers when user selected a wrong option
  • Randomly choose a congratulatory phrase from Good job! Awesome!, Correct! when user selected a correct option
  • At the end of the quiz, show the score

Each question has four options (four possible answers). The first answer immediately after the question is the correct answer. See illustration below:image text in transcribed

  1. You may assume there will always have a question followed by 4 answers and the first answer is the correct answer.
  2. However you should not assume and hardcode the total number of questions in your code. The marker may use different quiz.csv (which contains different number of questions) in marking your program.

Randomize the questions and randomize the answer choices

  1. You should not follow the question sequence given above
  2. You should not follow the answer sequence given above
  3. You should randomize both the questions and the options

output is like this

image text in transcribedso it will show all 5 questions each has a blank for user to put in their answer and there will be a total up of the score shown in the end. the programming language is python and i need the codes to do out this quiz program

quiz.csv - Notepad Edit Format View Help You're 3rd place right now in a race. What place are you in when you pass the person in 2nd place? 1st end This is the correct answer Brd 4th How many months have 28 days? All of them. This is the correct answer 1 Depends if there's a leap year or not. 12 If a leaf falls to the ground in a forest and no one hears it, does it make a sound? so Question 1 What is the name of the company that published the Mario Kart video game? a.Nintendo b.Xbox C. SEGA d. Electronic Arts (EA) Correct! Question 2 You're 3rd place right now in a race. What place are you in when you pass the person in 2nd place? a.4th b. 3rd c. 2nd d. 1st

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

Students also viewed these Databases questions

Question

LO2 Explain the nature of the psychological contract.

Answered: 1 week ago

Question

LO1 Discuss four different views of motivation at work.

Answered: 1 week ago