Question: Write a python program to generate a quiz using two files, named Questions.txt and Answers.txt. The program opens Questions.txt and displays the question with options

 Write a python program to generate a quiz using two files,named Questions.txt and Answers.txt. The program opens Questions.txt and displays the question

Write a python program to generate a quiz using two files, named Questions.txt and Answers.txt. The program opens Questions.txt and displays the question with options on the screen. The program will verify the Answer.txt file and display the scores. For example, Questions.txt file contains the following details: 1. Who is the prime minister of India? A. Narendra Modi B. Shivraj Patil 2. Who is the President of USA? A. Donald Trump B. Joe Biden Answer.txt file contains the following details: 1.A 2.B If inputs are A and B, then the Score is 100 Test Cases are case=1 input= AB output=100 case=2 input: AA output=50 case=3 input=BA output=0 For example: Test Input Result 1 A 100 B

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!