Reports the outcome of a quiz attempt or attempt-limit check back to the caller as JSON data. Built by ModuleFolder.markQuiz(String, Map, Session) and QuizService, and returned as the data payload of the JsonResult sent to the front-end, so a client can show how many attempts have been used, the required pass mark, the score just achieved, and which question batch to show next.
Properties
| Property | Returns | Description |
|---|---|---|
| maxAttempts | int | The maximum number of attempts allowed for this quiz. |
| nextQuizBatch | String | Identifier of the next batch of questions to present, when the quiz presents questions in batches. |
| numAttempts | int | The number of attempts already made at this quiz, including the current one. |
| requiredPassmarkPerc | int | The pass mark required to complete this quiz, as a percentage. |
| thisAttemptScore | int | The score achieved on the attempt this result reports on. |
Methods
getMaxAttempts()
Returns: int
The maximum number of attempts allowed for this quiz.
getNumAttempts()
Returns: int
The number of attempts already made at this quiz, including the current one.
getRequiredPassmarkPerc()
Returns: int
The pass mark required to complete this quiz, as a percentage.
getNextQuizBatch()
Returns: String
Identifier of the next batch of questions to present, when the quiz presents questions in batches.
getThisAttemptScore()
Returns: int
The score achieved on the attempt this result reports on.