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

PropertyReturnsDescription
maxAttemptsintThe maximum number of attempts allowed for this quiz.
nextQuizBatchStringIdentifier of the next batch of questions to present, when the quiz presents questions in batches.
numAttemptsintThe number of attempts already made at this quiz, including the current one.
requiredPassmarkPercintThe pass mark required to complete this quiz, as a percentage.
thisAttemptScoreintThe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.