Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • QuestionData

Implements

Index

Constructors

constructor

Properties

attempts

attempts: number

The number of allowed attempts. Defaults to QuestionData.attempts

depreciation

depreciation: number

The number of points that are subtracted from the question points when answered incorrectly. If the value is in the range [0, 1], it will be used as a multiplication factor. Defaults to QuestionData.depreciation

points

points: number

The number of points that this question represents. Defaults to QuestionData.points

Static attempts

attempts: number = QuestionData.depreciation < 1 ?Math.ceil(2 / Math.max(0.2, QuestionData.depreciation)) :Math.ceil(QuestionData.points / QuestionData.depreciation)

The default number of attempts the user can have at the question

Static depreciation

depreciation: number = 10

The number of points that are subtracted from the question points when answered incorrectly. If the value is in the range [0, 1], it will be used as a multiplication factor

Static points

points: number = 100

The default number of points the question is worth