Jump to navigation

Namespace: storage

Numbas.storage

Type Definitions

exam_suspend_data

Properties:
Name Type Description
timeRemaining number

Seconds until the end of the exam (Numbas.Exam#timeRemaining)

duration number

Length of the exam, in seconds (Numbas.Exam#settings)

questionSubsets Array.<Array.<number>>

The sets of questions in each question group (Numbas.Exam#question_groups)

start Date

The time the exam was started (Numbas.Exam#start)

score number

The student's current score (Numbas.exam#score)

currentQuestion number

The index of the current question (Numbas.Exam#currentQuestionNumber)

Source:

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? (Numbas.parts.Part#answered)

stepsShown boolean

have the steps been shown? (Numbas.parts.Part#stepsShown)

stepsOpen boolean

are the steps currently visible? (Numbas.parts.Part#stepsOpen)

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 Numbas.parts.JMEPart, Numbas.parts.NumberEntryPart or Numbas.parts.PatternMatchPart parts

shuffleChoices Array.<number>

order of choices, if this is a Numbas.parts.MultipleResponsePart

shuffleAnswers Array.<number>

order of answers, if this is a Numbas.parts.MultipleResponsePart

ticks Array.<Array.<number>>

student's choices, for Numbas.parts.MultipleResponsePart parts

Source:

question_suspend_data

Properties:
Name Type Description
name string

The name of the question (Numbas.Question#name)

score number

The student's score for this question (Numbas.Question#score)

visited boolean

Has the student visited this question yet? (Numbas.Question#visited)

answered boolean

Has the student answered this question? (Numbas.Question#answered)

adviceDisplayed boolean

Has the advice been displayed? (Numbas.Question#adviceDisplayed)

revealed boolean

Have the correct answers been revealed? (Numbas.Question#revealed)

variables object.<JME>

A dictionary of the values of the question variables. (Numbas.Question#scope)

Source:
See: