Question: from question import Question ## A question with multiple choices. # class ChoiceQuestion ( Question ) : ## Constructs a choice question with a given

from question import Question
## A question with multiple choices.
#
class ChoiceQuestion(Question) :
## Constructs a choice question with a given text and no choices.
# @param questionText the text of this question
#
def __init__(self, questionText) :
# Your code goes here
# Add any needed instance variables, but don't store the choices
# The choices should be added to the text of the superclass
## Adds an answer choice to this question.
# @param choice the choice to add
# @param correct True if this is the correct choice, False otherwise
#
def addChoice(self, choice, correct) :
# Your code goes here

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 Programming Questions!