Skip to main content

QuizQuestion

Individual quiz question

Extends

Properties

correctAnswer

correctAnswer: string | number | boolean;

Correct answer

Inherited from

AssessmentItem.correctAnswer


correctAnswers?

optional correctAnswers: string[];

Correct answers for multi-select questions (all must be selected)


explanation?

optional explanation: string;

Optional explanation shown after answering

Inherited from

AssessmentItem.explanation


id

id: string;

Unique identifier

Inherited from

AssessmentItem.id


options?

optional options: string[];

Answer options (for multiple-choice, true-false, and multi-select)


points?

optional points: number;

Points awarded for correct answer

Inherited from

AssessmentItem.points


question

question: string;

Question or test description

Inherited from

AssessmentItem.question


type

type: QuizQuestionType;

Type of question