public abstract class MultipleChoiceQuestion extends Question
Constructor and Description |
---|
MultipleChoiceQuestion(java.lang.String questionText,
MultipleChoiceAnswer answer,
int time,
int difficulty)
Sets the parameters for a question object
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkResponse(java.util.Collection<MultipleChoiceResponse> responses)
checks whether the student's response was correct
|
getAnswer, getDifficulty, getText, getTime
public MultipleChoiceQuestion(java.lang.String questionText, MultipleChoiceAnswer answer, int time, int difficulty)
questionText
- The text of a questionanswer
- The answer object representing the answer of this questiontime
- The time it takes to do this questiondifficulty
- The difficulty of this questionpublic abstract boolean checkResponse(java.util.Collection<MultipleChoiceResponse> responses)