8.25. Multiple Choice and Numerical Input Problem

Note

EdX offers provisional support for this problem type.

You can create a problem that combines a multiple choice and numerical input problems. Students not only select a response from options that you provide, but also provide more specific information, if necessary.

Image of a multiple choice and numerical input problem

Note

Currently, students can only enter numerals in the text field. Students cannot enter words or mathematical expressions, which might be confusing to students who are accustomed to other edX numerical input fields.

You can make a calculator available to your learners on every courseware page. For more information, see Calculator Tool.

8.25.1. Create a Multiple Choice and Numerical Input Problem

To create a multiple choice and numerical input problem:

  1. In the unit where you want to create the problem, click Problem under Add New Component, and then click the Advanced tab.
  2. Click Blank Advanced Problem.
  3. In the component that appears, click Edit.
  4. In the component editor, paste the code from below.
  5. Replace the example problem and response options with your own text.
  6. Click Save.

8.25.2. Multiple Choice and Numerical Input Problem Code

<problem>
The numerical value of pi, rounded to two decimal places, is 3.24.
  <choicetextresponse>
    <radiotextgroup>
      <choice correct="false">True.</choice>
      <choice correct="true">False. The correct value is <numtolerance_input answer="3.14"/>.</choice>
    </radiotextgroup>
  </choicetextresponse>
</problem>