Quiz

A quiz component displaying a sequence of question components.

Example:

<Quiz
    count={2}
    questions={[
        <RangeQuestion
            question="Approximately in which range lie 99% of observations drawn from a standard normal distribution?"
            solution={[-3,3]}
        />,
        <NumberQuestion
            question="What is the number PI - three digits after the period"
            solution={Math.PI}
            digits={3}
        />
    ]}
/>

Open interactive preview

Options:

  • confidence | boolean: whether to display a Likert scale asking for the confidence of the user's answer. Default: false.
  • forceConfidence | boolean: controls whether a user has to supply a confidence level before moving to the next question. Default: false.
  • count | number (required): number of questions to include in the quiz. Default: none.
  • questions | array (required): array of questions from which questions will be randomly selected. Default: none.
  • active | boolean: controls whether the timer for the quiz is active. Default: true.
  • duration | number: duration of the quiz; once time is up, the summary page will be displayed. Default: none.
  • skippable | boolean: controls whether questions in the quiz are skippable. Default: true.
  • onFinished | function: callback invoked when the quiz is finished and the results page is displayed. Default: onFinished() {}.

results matching ""

    No results matching ""