Multi Choice Question
data class MultiChoiceQuestion( val id: String, val question: String, val options: Array<String>, val indexOfCorrectOption: Int, val mark: Int) : Serializable
Content copied to clipboard
Class that models a single question in a WorkBook.
Parameters
id
the id of the Multi-Choice question.
question
a string that contains the question.
options
an array of strings representing the options for the multi-choice question.
index Of Correct Option
integer indicating the index of correct option.
mark
represents the maximum weightage (mark) for this question.