# 10.26. Multiple Choice and Numerical Input Problem¶

Note

EdX does not support 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. 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 unit page. For more information, see Calculator Tool.

## 10.26.1. Create a Multiple Choice and Numerical Input Problem¶

To create a multiple choice and numerical input problem, follow these steps.

1. In the unit where you want to create the problem, click Problem under Add New Component, and then click the Advanced tab.
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.

## 10.26.2. Multiple Choice and Numerical Input Problem Code¶

<problem>
The numerical value of pi, rounded to two decimal places, is 3.24.
<choicetextresponse>
{"ft_lang_label":"__label__en","ft_lang_prob":0.73014796,"math_prob":0.85147166,"size":969,"snap":"2019-51-2020-05","text_gpt3_token_len":210,"char_repetition_ratio":0.12227979,"word_repetition_ratio":0.031007752,"special_character_ratio":0.20433436,"punctuation_ratio":0.13414635,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96281344,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-25T20:29:55Z\",\"WARC-Record-ID\":\"<urn:uuid:9a48ee27-7d73-498f-ac25-1f9a5a293f72>\",\"Content-Length\":\"117669\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e17d58f7-80fc-4648-976a-ccbcdc97d24c>\",\"WARC-Concurrent-To\":\"<urn:uuid:2e8a2613-a52c-43cc-9898-b1a2ce0fca17>\",\"WARC-IP-Address\":\"104.208.221.96\",\"WARC-Target-URI\":\"https://edx-partner-course-staff.readthedocs.io/en/latest/exercises_tools/mult_choice_num_input.html\",\"WARC-Payload-Digest\":\"sha1:KJVSIOCCFAFK2EIIXP6XSULQTVY27YVF\",\"WARC-Block-Digest\":\"sha1:TYXBNAVE2HNBHJMZ6UWT2E7N62MUYKMY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251681412.74_warc_CC-MAIN-20200125191854-20200125221854-00011.warc.gz\"}"}