Question: Multiple Choice Create a function called multipleChoice ( ) . The function will print a multiple choice question to the screen. The question will have

Multiple Choice
Create a function called multipleChoice(). The function will print a multiple
choice question to the screen. The question will have 4 options labeled a, b,
c, and d. The function will read an input from the user. If the user typed the
letter of the correct answer the function will return 1 point. If the user typed
the letter of a wrong answer the function will return 0 points. You must have
exactly one correct answer.
If the user enters anything but a, b, c, or d, the question will be marked incorrect.

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!