ExamFileType

Internal tag named type.

One of the following items:

tag-valuedatatype of valuedescription
templateTemplateFileAn exam that uses a template.
normalNormalExamA normal exam.
diagnosticDiagnosticExamAn exam in diagnostic mode.

TemplateFile

fieldtypedescription
templateStringThe path to the template to use. Relative to the exams or questions folder.
[any]YAML-valueThe data to insert into the template. Maps template keys onto values.

NormalExam

fieldtypedescription
nameTranslationThe name of the exam
localesArray of LocaleAll locales for which the exam should be generated
navigationNormalNavigationThe navigation settings for this exam
timingTimingThe timing settings for this exam
feedbackFeedbackThe feedback settings for this exam
question_groupsArray of QuestionGroupThe questions groups for this exam
numbas_settingsNumbasSettingsThe settings to set for numbas

Translation

One of the following items:

typedescription
TranslationStructA structured translatable string with placeholders.
FileStringA simple filestring. This implies that it can also just be a string.

TranslationStruct

fieldtypedescription
contentTranslationContentThe content with optional placeholders ({{placeholder-name}}).
placeholdersMap from String to TranslationThe values for the placeholders. It maps the placeholder-name to it's translatable value. The value for a placeholder can thus (if needed) be different for different locales.

TranslationContent

One of the following items:

typedescription
Map from String to FileStringMap from locale to content. You can use this to specify different content for different locales.
FileStringA filestring. Possibly to a file that is placed in locale folders and is therefore localized.

FileString

One of the following items:

typedescription
StringA string of the form file:<filepath> where filepath is the relative path (within the exams or questions folder) to a file containing content. This content can be localized by placing it in locale folders. e.g. file:examples/basic-explanation.html will search for files in folders with following form: questions/examples/locale-<localename>/basic-explanation.html If a file isn't found for a specific locale, questions/examples/basic-explanation.html will be used.
StringA literal string.

Locale

fieldtypedescription
nameStringThe internal name used for the locale. It is best to use en for English, nl for dutch etc
numbas_localeSupportedLocaleThe locale to use in the Numbas interface

SupportedLocale

One of the following items:

namedescription
"ar-SA"Arabic (Saudi Arabia)
"de-DE"German (Germany)
"en-GB"English (United Kingdom)
"es-ES"Spanish (Spain)
"fr-FR"French (France)
"he-IL"Hebrew (Israel)
"in-ID"Indonesian (Indonesia)
"it-IT"Italian (Italy)
"ja-JP"Japanese (Japan)
"ko-KR"Korean (Korea)
"nb-NO"Norwegian (Norway)
"nl-NL"Dutch (Netherlands)
"pl-PL"Polish (Poland)
"pt-BR"Portuguese (Brazil)
"sq-AL"Albanian (Albania)
"sv-SE"Swedish (Sweden)
"tr-TR"Turkish (Turkey)
"vi-VN"Vietnamese (Viet Nam)
"zg-CN"Chinese (S)

NormalNavigation

Internal tag named mode.

One of the following items:

tag-valuedatatype of valuedescription
sequentialSequentialNavigationQuestions are shown in sequential order. Whether student can browse trough questions in any order, can be set.
menuMenuNavigationQuestions are shown in a menu and there is no real order of the questions.

SequentialNavigation

fieldtypedescription
start_password"none" or FileStringPassword to begin the exam none and "" are the same
can_regenerateBooleanWhether the student can regenerate questions Old name was allow_regenerate
show_stepsBooleanIf false, then part steps will not be offered to the student, regardless of whether any have been defined in the exam’s questions Old name was allow_steps
show_title_pageBooleanWhether the title page should be shown. Old name was show_frontpage
confirm_when_leavingBooleanWhether the student will be asked to confirm when leaving the exam.
show_names_of_question_groupsBooleanWhether the names of the question groups should be shown.
allow_printingBooleanWhether the student is allowed to print the exam
can_move_to_previousBooleanWhether the student can move back to previous question (Old name was reverse)
browsing_enabledBooleanWhether the student can jump to any question.
show_results_pageShowResultsPageWhen the results page should be shown
on_leaveLeaveActionAction to execute when a student changes question or tries to end the exam.

ShowResultsPage

One of the following items:

namedescription
"on_completion"When the exam is completed.
"never"Never show it.

LeaveAction

Internal tag named action.

One of the following items:

tag-valuedatatype of valuedescription
"none"Don't show a warning
warn_if_not_attemptedLeaveActionMessageWarn when a question is not attempted.
prevent_if_not_attemptedLeaveActionMessagePrevent when a question is not attempted

LeaveActionMessage

fieldtypedescription
messageTranslationThe message to show.

MenuNavigation

fieldtypedescription
start_password"none" or FileStringPassword to begin the exam none and "" are the same
can_regenerateBooleanWhether the student can regenerate questions Old name was allow_regenerate
show_stepsBooleanIf false, then part steps will not be offered to the student, regardless of whether any have been defined in the exam’s questions Old name was allow_steps
show_title_pageBooleanWhether the title page should be shown. Old name was show_frontpage
confirm_when_leavingBooleanWhether the student will be asked to confirm when leaving the exam.
show_names_of_question_groupsBooleanWhether the names of the question groups should be shown.
allow_printingBooleanWhether the student is allowed to print the exam

Timing

fieldtypedescription
duration_in_seconds"none" or IntegerThe maximal time that can be spend on the exam. If this value is none or 0, the student gets unlimited time.
allow_pauseBooleanWhether the 'pause' button is available.
on_timeoutTimeoutActionAction to do on timeout
timed_warningTimeoutActionAction to do five minutes before timeout

TimeoutAction

Internal tag named action.

One of the following items:

tag-valuedatatype of valuedescription
"none"Do nothing
warnTimeoutActionWarnShow a warning

TimeoutActionWarn

fieldtypedescription
messageTranslationThe message to show

Feedback

fieldtypedescription
percentage_needed_to_pass"none" or FloatSpecifies when a student passes the test. When set to "none" or 0, no percentage will be shown in frontpage.
show_name_of_studentBooleanWhether the student's name should be shown in the exam.
show_current_marksBooleanWhether current marks are shown during exam or not (show_actual_mark in numbas)
show_maximum_marksBooleanWhether the maximal mark for a question (or the total exam) is shown (show_total_mark of numbas)
show_answer_stateBooleanWhether answer feedback is shown (right or wrong etc)
allow_reveal_answerBooleanWhether the 'reveal answer' button is present
reviewReviewThe review settings
adviceTranslationThe advice shown at the end.
introTranslationThe introductory text
feedback_messagesArray of FeedbackMessageDifferent feedback messages based on their score.

Review

fieldtypedescription
show_scoreBooleanWhether to show score in result overview page
show_feedbackBooleanShow feedback while reviewing
show_expected_answerBooleanShow expected answer while reviewing
show_adviceBooleanShow advice while reviewing

FeedbackMessage

fieldtypedescription
messageStringThe message to show
thresholdStringThe minimum score that is needed to get this feedback

QuestionGroup

fieldtypedescription
nameTranslationThe name of the question group. Might be shown to students, based on the show_names_of_question_groups setting of the exam navigation.
picking_strategyPickingStrategyThe strategy to use to pick the questions to show
questionsArray of QuestionPathOrTemplateThe questions

PickingStrategy

Internal tag named type.

One of the following items:

tag-valuedatatype of valuedescription
"all_ordered"All questions in the group are shown in the given order
"all_shuffled"All questions in the group are shown in a random order for each attempt
random_subsetPickingStrategyRandomSubsetA random subset of the questions in this group will be shown. The amount of random questions to show, needs to be specified

PickingStrategyRandomSubset

fieldtypedescription
pick_questionsIntegerThe amount of questions to pick

QuestionPathOrTemplate

One of the following items:

typedescription
StringThe path to the question. Relative to the questions folder.
TemplateFileDirectly load a templated question by specifying the template values.

NumbasSettings

fieldtypedescription
themeStringThe numbas theme to use

DiagnosticExam

fieldtypedescription
nameTranslationThe name of the exam
localesArray of LocaleAll locales for which the exam should be generated
navigationDiagnosticNavigationThe navigation settings for this exam
timingTimingThe timing settings for this exam
feedbackFeedbackThe feedback settings for this exam
question_groupsArray of QuestionGroupThe questions groups for this exam
numbas_settingsNumbasSettingsThe settings to set for numbas
diagnosticDiagnosticThe diagnostic data

DiagnosticNavigation

fieldtypedescription
start_password"none" or FileStringPassword to begin the exam none and "" are the same
can_regenerateBooleanWhether the student can regenerate questions Old name was allow_regenerate
show_stepsBooleanIf false, then part steps will not be offered to the student, regardless of whether any have been defined in the exam’s questions Old name was allow_steps
show_title_pageBooleanWhether the title page should be shown. Old name was show_frontpage
confirm_when_leavingBooleanWhether the student will be asked to confirm when leaving the exam.
show_names_of_question_groupsBooleanWhether the names of the question groups should be shown.
allow_printingBooleanWhether the student is allowed to print the exam
on_leaveLeaveActionAction to execute when a student changes question or tries to end the exam.

Diagnostic

fieldtypedescription
scriptDiagnosticScriptThe script to use
objectivesArray of LearningObjectiveThe learning objectives,
topicsArray of LearningTopicThe learning topics

DiagnosticScript

One of the following items:

namedescription
"mastery"The aim of the Mastery algorithm is to repeatedly test topics until the student passes them. Once all topics are passed, the exam ends. see https://docs.numbas.org.uk/en/latest/exam/diagnostic.html#mastery
"diagnosys"The aim of the DIAGNOSYS algorithm is to efficiently establish which topics the student understands, and which they don’t. see https://docs.numbas.org.uk/en/latest/exam/diagnostic.html#diagnosys
"custom"A custom diagnostic script. See https://docs.numbas.org.uk/en/latest/exam/diagnostic.html#writing-a-diagnostic-algorithm

LearningObjective

fieldtypedescription
nameTranslationThe name of the learning objective
descriptionTranslationA description of the learning objective

LearningTopic

fieldtypedescription
nameTranslationThe name of the learning topic
descriptionTranslationA description of the learning topic
objectivesArray of TranslationList of names of objectives of which this topic consists
depends_onArray of TranslationList of names of topics on which this topic depends