This context provides methods to handle a quiz.
Methods
-
<inner> getMasteryScore() → {number}
-
Gets the mastery score.
The mastery score represents the goal to pass the sco.
A student can pass the sco while getting a score equal or greater than the mastery score.Returns:
The current score.
- Type
- number
-
<inner> getQuestions() → {Array.<QuizQuestionContext>}
-
Gets an array with all questions.
Returns:
An array of all quiz objects. An empty array, if no quiz-object exists.
- Type
- Array.<QuizQuestionContext>
-
<inner> getScore() → {number}
-
Gets the current score.
The returned score depends on the learning mode.
learning:
The score represents the current progress (percent) of the wbt.
A student can get a 100% score by simply viewing all wbt pages.
assessment:
The score represents the current assessment score (percent).
A student can get a 100% score only by solving all interactions and tests correctly.
Returns:
The current score.
- Type
- number
-
<inner> isCompleted() → {boolean}
-
Gets completed state for the quiz.
Returns:
'true' if the quiz is completed and a changing the result is not possible.
- Type
- boolean
-
<inner> isFailed() → {boolean}
-
Gets failed state for the quiz.
Returns:
'true' if the quiz is failed, 'fales' otherwise.
- Type
- boolean
-
<inner> isPassed() → {boolean}
-
Gets passed state for the quiz.
Returns:
'true' if the quiz is passed, 'fales' otherwise.
- Type
- boolean