new ExamDisplay(e)
Display properties of the Numbas.Exam
object.
Parameters:
Name | Type | Description |
---|---|---|
e |
Numbas.Exam | associated exam |
Members
(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
Does this exam need a password to begin?
Type:
(static) canBegin :observable|boolean
Can the exam begin? True if no password is required, or if the student has entered the right password.
Type:
(static) canReverse :observable|boolean
Can the student go back to the previous question? False if the current question is the first one.
Type:
(static) currentQuestionNumber :observable|number
The number of the current question.
Type:
(static) displayTime :observable|string
The time left in the exam.
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) enteredPassword :observable|string
Password entered by the student.
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) marks :observable|number
The total marks available for the exam.
Type:
(static) mode :observable|string
The exam's mode.
Type:
(static) passed :observable|boolean
Did the student pass the exam?
Type:
(static) passwordFeedback :observable|object
Feedback on the password the student has entered.
Has properties iconClass
, title
and buttonClass
.
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) revealed :observable|boolean
Have the correct answers been revealed?
Type:
(static) score :observable|number
The student's total score.
Type:
(static) showActualMark :observable|boolean
Show the student their total score?
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) 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
(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.
showDiagnosticActions()
Show the modal dialog with actions the student can take to move on from the current question.