MultiChoiceQuestion

data class MultiChoiceQuestion(    val id: String,     val question: String,     val options: Array<String>,     val indexOfCorrectOption: Int,     val mark: Int) : Serializable

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.

indexOfCorrectOption

integer indicating the index of correct option.

mark

represents the maximum weightage (mark) for this question.

Constructors

Link copied to clipboard
fun MultiChoiceQuestion(    id: String,     question: String,     options: Array<String>,     indexOfCorrectOption: Int,     mark: Int)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
val indexOfCorrectOption: Int
Link copied to clipboard
val mark: Int
Link copied to clipboard
val options: Array<String>
Link copied to clipboard
val question: String