Members
Type Definitions
exam_suspend_data
Properties:
Name | Type | Description |
---|---|---|
timeRemaining |
number | Seconds until the end of the exam ( |
duration |
number | Length of the exam, in seconds ( |
questionSubsets |
Array.<Array.<number>> | The sets of questions in each question group ( |
start |
Date | The time the exam was started ( |
score |
number | The student's current score ( |
currentQuestion |
number | The index of the current question ( |
inputWidgetStorage
Properties:
Name | Type | Description |
---|---|---|
interaction_type |
function | Return the SCORM interaction type identifier for the given part. |
correct_answer |
function | Return a JSON-serialisable object representing the correct answer for the given part. |
student_answer |
function | Return a JSON-serialisable object representing the student's answer to the given part. |
load |
function | Given arguments |
partTypeStorage
Type:
Properties:
Name | Type | Description |
---|---|---|
interaction_type |
function |
|
correct_answer |
function |
|
student_answer |
function |
|
suspend_data |
function |
|
load |
function |
|
part_suspend_data
Properties:
Name | Type | Description |
---|---|---|
answer |
string | student's answer to the part, as encoded for saving |
answered |
boolean | has the student answered this part? ( |
stepsShown |
boolean | have the steps been shown? ( |
stepsOpen |
boolean | are the steps currently visible? ( |
gaps |
Array.<Numbas.storage.part_suspend_data> | data for gaps, if this is a gapfill part |
steps |
Array.<Numbas.storage.part_suspend_data> | data for steps, if this part has steps |
studentAnswer |
string | student's answer, for |
shuffleChoices |
Array.<number> | order of choices, if this is a |
shuffleAnswers |
Array.<number> | order of answers, if this is a |
ticks |
Array.<Array.<number>> | student's choices, for |
question_suspend_data
Properties:
Name | Type | Description |
---|---|---|
name |
string | The name of the question ( |
score |
number | The student's score for this question ( |
visited |
boolean | Has the student visited this question yet? ( |
answered |
boolean | Has the student answered this question? ( |
adviceDisplayed |
boolean | Has the advice been displayed? ( |
revealed |
boolean | Have the correct answers been revealed? ( |
variables |
Object.<JME> | A dictionary of the values of the question variables. ( |