new MultipleResponsePartDisplay()
Display code for a Numbas.parts.MultipleResponsePart
Extends
Members
(static) correctAnswer :observable|number
Index of the answer which gains the most marks
Type:
(static) studentAnswer :observable|number
Index of student's current answer choice (not necessarily submitted)
Type:
(static) ticks :observable|Array.<boolean>|Array.<number>|Array.<Array.<boolean>>
For each choice, has the student selected it?
For m_n_2 parts, this is a list of booleans. For m_n_x radiogroup parts, it's a list of indices. For m_n_x checkbox parts, it's a 2d array of booleans.
Type:
(static) ticks :observable|Array.<boolean>|Array.<number>|Array.<Array.<boolean>>
For each choice, should it be selected to get the most marks?
For m_n_2 parts, this is a list of booleans. For m_n_x radiogroup parts, it's a list of indices. For m_n_x checkbox parts, it's a 2d array of booleans.
Type:
Methods
setName(name)
Set this part's name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Inherited From:
- Source: