Jump to navigation

Class: MultipleResponsePartDisplay

Numbas.display.MultipleResponsePartDisplay

Members

(static) correctAnswer :observable|number

Index of the answer which gains the most marks

Type:
Source:

(static) studentAnswer :observable|number

Index of student's current answer choice (not necessarily submitted)

Type:
Source:

(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:
Source:

(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:
Source:

Methods

setName(name)

Set this part's name.

Parameters:
Name Type Description
name string
Inherited From:
Source: