Crease

MultipleAnswersContent

Will accept multiple correct answers from multiple choices.

Fields

PropTypeDefault
format
multiple-answers
-
question
string
-
options
string[]
-
correctAnswers
number[]
-

Example

const content: NonEmptyArray<MultipleAnswersContent> = [
  {
    format: "multiple-answers",
    question: "Which of these are prime numbers?",
    options: ["-2", "7", "3", "1"],
    correctAnswers: [1, 2]
  },
  {
    format: "multiple-answers",
    question: "Which of these are odd numbers?",
    options: ["-2", "7", "3", "1"],
    correctAnswers: [1, 2, 3]
  }
]

More information

correctAnswers: The index (0-based) of the correct answer within the options array.

On this page