Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

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

More Books

Students also viewed these Databases questions

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago