Multi Choice Question
fun MultiChoiceQuestion( id: String, question: String, options: Array<String>, indexOfCorrectOption: Int, mark: Int)
Content copied to clipboard
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.