Select Question

A select question component.

Example:

<SelectQuestion
    question="The usual t-test is"
    solution="two-sided"
    options={[
        'left-sided',
        'right-sided',
        'two-sided'
    ]}
/>

Open interactive preview

Options:

  • question | string: question for which the student has to select one of the available answer options. Default: ''.
  • options | array (required): available answer options from which the student can select. Default: none.
  • solution | string (required): question solution (must be equal to one of the answer options). Default: none.
  • defaultValue | string: preselected answer option. Default: ''.
  • failureMsg | string: message to be displayed when student selects a wrong answer. Default: 'Not quite, try again!'.
  • successMsg | string: message to be displayed when student selects the correct answer. Default: 'That's the correct answer!'.
  • inline | boolean: controls whether the component should be inlined. Default: false.
  • onChange | function: callback which is triggered after the submit action. Default: onChange() {}.

results matching ""

    No results matching ""