Jump to navigation

Namespace: parts

Numbas.parts

Part type constructors These functions aren't called directly - they're the original part constructor objects before they're extended with the generic part methods, kept for reference so their methods can be reused by other parts

Source:
See:

Type Definitions

feedbackmessage

Type:
Properties:
Name Type Description
op String

the kind of feedback

Source:
See:
  • Numbas.parts.Part#setCredit Numbas.parts.Part#addCredit Numbas.parts.Part#multCredit Numbas.parts.Part#markingComment

marking_results

A dictionary representing the results of marking a student's answer.

Type:
Properties:
Name Type Description
warnings Array.<String>

Warning messages.

finalised_result Numbas.marking.finalised_state

sequence of marking operations

markingFeedback Array.<Numbas.parts.feedbackmessage>

Feedback messages to show to student, produced from finalised_result.

credit Number

Proportion of the available marks to award to the student.

answered Boolean

True if the student's answer could be marked. False if the answer was invalid - the student should change their answer and resubmit.

Source:

partpath

A unique identifier for a Numbas.parts.Part object, of the form qXpY[gZ|sZ]. Numbering starts from zero, and the gZ bit is used only when the part is a gap, and sZ is used if it's a step.

Type:
Source: