Methods
(static) backToResults()
In an ended exam, go back from reviewing a question the results page.
(static) beginExam()
Start the exam - triggered when user clicks "Start" button on frontpage.
- Source:
- See:
(static) endExam()
Try to end the exam.
- Source:
- See:
(static) getAdvice(exam)
Show the advice for the current question.
Parameters:
Name | Type | Description |
---|---|---|
exam |
Numbas.Exam |
(static) jumpQuestion(jumpTo, exam)
Try to move directly to a particular question.
Parameters:
Name | Type | Description |
---|---|---|
jumpTo |
number | Number of the question to jump to. |
exam |
Numbas.Exam |
(static) makeQuestionJumper(n, exam) → {function}
Make a function which tries to jump to question N.
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Number of the question to jump to. |
exam |
Numbas.Exam |
Returns:
Type | Description |
---|---|
function |
(static) nextQuestion(exam)
Try to move to the next question.
Parameters:
Name | Type | Description |
---|---|---|
exam |
Numbas.Exam |
(static) pauseExam()
Pause the exam.
- Source:
- See:
(static) previousQuestion(exam)
Try to move to the previous question.
Parameters:
Name | Type | Description |
---|---|---|
exam |
Numbas.Exam |
(static) regenQuestion(exam)
Regenerate the current question.
Parameters:
Name | Type | Description |
---|---|---|
exam |
Numbas.Exam |
(static) resumeExam()
Resume the paused exam.
- Source:
- See:
(static) revealAnswer(exam)
Reveal the answers to the current question.
Parameters:
Name | Type | Description |
---|---|---|
exam |
Numbas.Exam |
(static) showIntroduction()
Show the introduction text, while the exam is in progress.
(static) submitQuestion(exam)
Submit student's answers to all parts in the current question.
Parameters:
Name | Type | Description |
---|---|---|
exam |
Numbas.Exam |