new ExamDisplay(e)
Display properties of the Numbas.Exam
object.
Parameters:
Name | Type | Description |
---|---|---|
e |
Numbas.Exam | associated exam |
Members
(static) advance :observable|boolean
Move forwards, to the next question or just switch back to viewing questions if viewing an info page.
Type:
(static) allowAttemptDownload :boolean
Does this exam allow the student to download their attempt data?
Type:
(static) allowPause :boolean
Is the student allowed to pause the exam?
Type:
(static) allowPrinting :observable|boolean
Allow the student to print an exam transcript?
Type:
- Source:
- See:
-
- Numbas.Exam#settings#percentPass
(static) canAdvance :observable|boolean
Can the student go forward to the next question? False if the current question is the last one.
Type:
(static) canBegin :observable|boolean
Can the exam begin? True if no password is required, or if the student has entered the right password, and no name is required or the student has entered a name.
Type:
(static) canReverse :observable|boolean
Can the student go back to the previous question, or to the introduction? False if the current question is the first one and there's no introduction.
Type:
(static) confirmEnd :observable|string
Confirmation text entered by the student to end the exam.
Type:
(static) currentQuestionNumber :observable|number
The number of the current question.
Type:
(static) displayTime :observable|string
The time left in the exam.
Type:
(static) downloadEncryptionKey :observable|string
Key to use for encrypting student data
Type:
(static) downloadEncryptionKey :string
Key for encrypting student data.
Type:
(static) duration :observable|number
The time allowed for the exam, in seconds.
Type:
(static) endTime :observable|string
Time the exam ended, formatted for display.
Type:
(static) endTimeISO :observable|string
The time the exam ended, in ISO format.
Type:
(static) ended :observable|boolean
Has the exam ended?
Type:
(static) examScoreDisplay :observable|string
String displaying the student's current score, and the total marks available, if allowed.
Type:
(static) feedbackMessage :observable|string
Message shown to the student based on their total score.
Type:
(static) infoPage :observable|string
The name of the currently displayed info page.
Type:
(static) main_labelledby :observable|string
The ID of the header to use for the label of the
Type:
(static) marks :observable|number
The total marks available for the exam.
Type:
(static) mode :observable|string
The exam's mode.
Type:
(static) needsPassword :boolean
Does this exam need a password to begin?
Type:
(static) needsStudentName :boolean
Must the student write their name before the exam can begin?
Type:
(static) numQuestions :observable|number
The number of questions in the exam.
Type:
(static) passed :observable|boolean
Did the student pass the exam?
Type:
(static) percentPass :observable|string
The percentage score the student needs to achieve to pass, formatted as a string.
Type:
- Source:
- See:
-
- Numbas.Exam#settings#percentPass
(static) percentScore :observable|number
The student's total score as a percentage of the total marks available.
Type:
(static) printLabel :observable|string
Label to use for the "print your transcript" button on the results page.
Type:
(static) questions :observable|Array.<Numbas.display.QuestionDisplay>
All the exam's question display objects.
Type:
(static) questionsAttempted :observable|number
Total number of questions the student attempted.
Type:
(static) questionsAttemptedDisplay :observable|string
Total number of questions the student attempted, formatted as a fraction of the total number of questions.
Type:
(static) result :observable|string
The result of the exam - passed or failed?
Type:
(static) resultsScoreColumnHeader :observable|string
The header for the column on the results page that might show the score, the marks available, or just the answered state.
Type:
(static) revealed :observable|boolean
Have the correct answers been revealed?
Type:
(static) reverse :observable|boolean
Move backwards, to the previous question or to the introduction if already on the first question.
Type:
(static) score :observable|number
The student's total score.
Type:
(static) showActualMark :observable|boolean
Show the student their total score?
Type:
(static) showAttemptDownloadSecurityWarning :boolean
Show a warning that downloading attempt data won't work? True if the window is not in a secure context.
Type:
(static) showQuestionGroupNames :observable|string
Show the names of question groups in the menu?
Type:
(static) startTime :observable|string
Time the exam started, formatted for display.
Type:
(static) startTimeISO :observable|string
The time the exam started, in ISO format.
Type:
(static) student_name :observable|string
The student's name, as entered by the student.
Type:
(static) timeSpent :observable|string
The total time the student has spent in the exam.
Type:
(static) viewType :observable|string
What kind of view are we in at the moment? 'infopage' or 'question'.
Type:
Methods
addQuestion(question)
Called when a question is added to the exam.
Parameters:
Name | Type | Description |
---|---|---|
question |
Numbas.Question |
download_attempt_data()
Download the attempt data.
showDiagnosticActions()
Show the modal dialog with actions the student can take to move on from the current question.
(static) applyQuestionBindings(question)
Apply knockout bindings to the given question.
Parameters:
Name | Type | Description |
---|---|---|
question |
Numbas.Question |
(static) beginExam()
Try to begin the exam.
(static) end()
Called when the exam ends.
(static) endRegen()
Called after the current question has been regenerated.
(static) hideNavMenu()
Hide the sliding side menu.
(static) hideTiming()
Hide the timer.
(static) initQuestionList()
Initialise the question list display.
(static) revealAnswers()
Reveal the answers to every question in the exam.
(static) showInfoPage(page)
Show an info page (one of the front page, pause, or results).
Parameters:
Name | Type | Description |
---|---|---|
page |
string | Name of the page to show. |
(static) showQuestion()
Show the current question.
(static) showScore()
Show/update the student's total score.
(static) showTiming()
Update the timer.
(static) startRegen()
Called just before the current question is regenerated.
(static) updateQuestionMenu()
Update the question list display - typically, scroll so the current question is visible.