Jump to navigation

Class: QuestionGroup

Numbas.QuestionGroup

new QuestionGroup(exam, groupNode)

Represents a group of questions

Parameters:
Name Type Description
exam Numbas.Exam
groupNode Element

the XML defining the group.

Properties:
Name Type Description
exam Numbas.Exam

the exam this group belongs to

xml Element
questionSubset Array.<Number>

the indices of the picked questions, in the order they should appear to the student

questionList Array.<Numbas.Question>
Source:

Members

settings

Settings for this group

Properties:
Name Type Description
name String
pickingStrategy String

how to pick the list of questions: 'all-ordered', 'all-shuffled' or 'random-subset'

pickQuestions Number

if pickingStrategy is 'random-subset', how many questions to pick

Source:

Methods

chooseQuestionSubset()

Decide which questions to use and in what order

Source: