Multiple Choice Question

An ISLE component that renders a multiple choice question. It supports the case where the learner has to select a single answer and when there might be multiple correct answers and all correct ones must be picked.


        {content:"There's a 0.7% chance that average birthweights are the same among smoking and non-smoking mothers", explanation:""},
        {content:"If the null were true, the probability of observing this large a difference in average birthweights in our data is 0.7%", explanation:""},
        {content:"The probability that the confidence interval does not contain the true mean difference is 0.7%", explanation:""},
        {content:"Average birthweights are 0.7% higher among babies born to non-smoking mothers", explanation:""}
    question="4. Which of the following is an accurate interpretation of the p-value?"

Open interactive preview


  • question | string: the question displayed at the top of the multiple choice component. Default: ''.
  • solution | (number|array) (required): number denoting which answer is correct or an array of the correct answer numbers in case the learner should be able to select multiple answers. Default: none.
  • answers | array (required): an array of answer objects. Each answer should be an object with content and explanation fields, which denote the displayed answer option and an explanation visible after the question has been submitted to explain why the answer is correct or incorrect. Default: none.
  • hintPlacement | string: placement of the hints (either top, left, right, or bottom). Default: 'bottom'.
  • hints | array<string>: hints providing guidance on how to answer the question. Default: [].
  • feedback | boolean: controls whether to display feedback buttons. Default: false.
  • disabled | boolean: controls whether the question is disabled. Default: false.
  • chat | boolean: controls whether the element should have an integrated chat. Default: false.
  • provideFeedback | boolean: indicates whether feedback including the correct answer should be displayed after learners submit their answers. Default: true.
  • displaySolution | boolean: controls whether the solution is displayed upfront. Default: false.
  • style | object: CSS inline styles. Default: {}.
  • onSubmit | function: callback invoked after an answer is submitted. Default: onSubmit(){}.

results matching ""

    No results matching ""