Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: Inheritance Here's what the code looks so far: question.py file (https://pastecode.xyz/view/362833be) questiondemo1.py file (https://pastecode.xyz/view/cb9c13a8) PROGRAMMING EXERCISES Add a class NumericQuestion to the question hierarchy

image text in transcribedPython: Inheritance

Here's what the code looks so far:

question.py file (https://pastecode.xyz/view/362833be)

questiondemo1.py file (https://pastecode.xyz/view/cb9c13a8)

PROGRAMMING EXERCISES Add a class NumericQuestion to the question hierarchy of Section 10.1. If the response and the expected answer differ by no more than 0.01, then accept the response as correct. P10.1 Add a class FillInQuestion to the question hierarchy of Section 10.1. Such a question is constructed with a string that contains the answer, surrounded by _,for example, The inventor of Python was _Guido van Rossum_". The question should be displayed as P10.2 The inventor of Python was P10.3 Modify the checkAnswer method of the Question class so that it does not take into account different spaces or upper/lowercase characters. For example, the response "CUIDO van Rossum" should match an answer of "Guido van Rossum" Add a class AnyCorrectChoiceQuestion to the question hierarchy of Section 10.1 that allows multiple correct choices. The respondent should provide any one of the correct choices. The answer string should contain all of the correct choices, separated by spaces. Provide instructions in the question text - P10.4 Add a class Mu1tiChoiceQuestion to the question hierarchy of Section 10.1 that allows multiple correct choices. The respondent should provide all correct choices, separated by spaces. Provide instructions in the question text. P10.5 PROGRAMMING EXERCISES Add a class NumericQuestion to the question hierarchy of Section 10.1. If the response and the expected answer differ by no more than 0.01, then accept the response as correct. P10.1 Add a class FillInQuestion to the question hierarchy of Section 10.1. Such a question is constructed with a string that contains the answer, surrounded by _,for example, The inventor of Python was _Guido van Rossum_". The question should be displayed as P10.2 The inventor of Python was P10.3 Modify the checkAnswer method of the Question class so that it does not take into account different spaces or upper/lowercase characters. For example, the response "CUIDO van Rossum" should match an answer of "Guido van Rossum" Add a class AnyCorrectChoiceQuestion to the question hierarchy of Section 10.1 that allows multiple correct choices. The respondent should provide any one of the correct choices. The answer string should contain all of the correct choices, separated by spaces. Provide instructions in the question text - P10.4 Add a class Mu1tiChoiceQuestion to the question hierarchy of Section 10.1 that allows multiple correct choices. The respondent should provide all correct choices, separated by spaces. Provide instructions in the question text. P10.5

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

Students also viewed these Databases questions