FreeAnswerNumberQuestion

Models a free answer question where the answer is interpreted as a number.

Supertype

Question

Subtypes

None

JSON Representation

{
    "title" : string,
    "type" : "FreeAnswerNumber",
    ("media" : { "type" : string, "url" : URL },)
    ("tolerance" : unsigned integer,)
    ("goodAnswer" : value)
}

Fields description

See Question for a general description of the inherited fields title, media and goodAnswer.

Field Meaning Constraints
tolerance Maximal difference, in %, between a user answer and the good answer to consider the user answer as correct. One of the following values : 0, 5, 20, 30. Absent if the quiz is a survey.
goodAnswer The correct answer to this question. Contains at most 8 digits in the integer part and 8 digits in the decimal part, if any. If goodAnswer is a string, the decimal mark can be "." or ",". See Question to know when this field is present.