Building and Running an Open edX Course
  • 1. Read Me
  • 2. Preface
    • 2.1. System Status
    • 2.2. Resources for Course Teams
    • 2.3. Resources for Researchers
    • 2.4. Resources for Developers
    • 2.5. Resources for Students
  • 3. Change Log
    • 3.1. February 2015
  • 4. Getting Started
    • 4.1. edX Browser Support
    • 4.2. Getting Started with Studio
    • 4.3. Guidelines for Creating Accessible Content
    • 4.4. Glossary
  • 5. Setting up Your Course
    • 5.1. Creating a New Course
    • 5.2. Providing a Course Overview
    • 5.3. Adding Files to a Course
    • 5.4. Adding Course Updates and Handouts
    • 5.5. Adding Pages to a Course
    • 5.6. Adding Textbooks
    • 5.7. Establishing a Grading Policy
    • 5.8. Re-running a Course
    • 5.9. Exporting and Importing a Course
  • 6. Developing Your Course
    • 6.1. Getting Started with Course Content Development
    • 6.2. Developing Your Course Outline
    • 6.3. Developing Course Sections
    • 6.4. Developing Course Subsections
    • 6.5. Developing Course Units
    • 6.6. Developing Course Components
    • 6.7. Controlling Content Visibility
    • 6.8. Testing Your Course Content
  • 7. Creating Course Content
    • 7.1. Working with HTML Components
    • 7.2. Working with Video Components
    • 7.3. Working with Discussion Components
    • 7.4. Working with Problem Components
    • 7.5. Working with Content Libraries
  • 8. Creating Exercises and Tools
    • 8.1. Creating Exercises and Tools
    • 8.2. Annotation Problem
    • 8.3. Checkbox Problem
    • 8.4. Chemical Equation Problem
    • 8.5. Circuit Schematic Builder Problem
    • 8.6. Conditional Module
    • 8.7. Custom JavaScript Problem
    • 8.8. Drag and Drop Problem
    • 8.9. Dropdown Problem
    • 8.10. External Grader
    • 8.11. Full Screen Image Tool
    • 8.12. Gene Explorer Tool
    • 8.13. Google Calendar Tool
    • 8.14. Google Drive Files Tool
    • 8.15. Google Instant Hangout Tool
    • 8.16. IFrame Tool
    • 8.17. Image Mapped Input Problem
    • 8.18. LTI Component
    • 8.19. Math Expression Input Problems
    • 8.20. Molecule Editor Tool
    • 8.21. Molecule Viewer Tool
    • 8.22. Multiple Choice Problem
    • 8.23. Multiple Choice and Numerical Input Problem
    • 8.24. Numerical Input
    • 8.25. Open Response Assessments
    • 8.26. Periodic Table Tool
    • 8.27. Poll Tool
    • 8.28. Problem with Adaptive Hint
    • 8.29. Problem Written in LaTeX
    • 8.30. Protex Protein Builder Tool
    • 8.31. Randomized Content Blocks
    • 8.32. Student Notes Tool
    • 8.33. Text Input Problem
    • 8.34. Word Cloud Tool
    • 8.35. Write-Your-Own-Grader Problem
    • 8.36. Zooming Image Tool
    • 8.37. A Brief Introduction to MathJax in Studio
  • 9. Creating Content Experiments
    • 9.1. Overview of Content Experiments
    • 9.2. Configure Your Course for Content Experiments
    • 9.3. Add Content Experiments to Your Course
    • 9.4. Test Content Experiments
  • 10. Including Student Cohorts
    • 10.1. Using Cohorts in your Courses
    • 10.2. Enabling and Configuring the Cohorts Feature
    • 10.3. Creating Cohort-Specific Courseware
    • 10.4. Setting up Discussions in Courses with Cohorts
    • 10.5. Managing Discussions in Courses with Student Cohorts
  • 11. Releasing Your Course
    • 11.1. Beta Testing a Course
    • 11.2. Course Launching Activities
    • 11.3. Staff Debug Info
  • 12. Running Your Course
    • 12.1. Staffing
    • 12.2. Enrollment
    • 12.3. Managing Course Discussions
    • 12.4. Participating in Course Discussions
    • 12.5. Guidance for Discussion Moderators
    • 12.6. Bulk Email
    • 12.7. Using the Course Wiki
    • 12.8. Course Data
    • 12.9. Student Data
    • 12.10. Answer Data
    • 12.11. Student Grades and Grading
    • 12.12. Assign Final Grades and Issue Certificates
 
Building and Running an Open edX Course
  • Table of Contents »
  • 8.9. Dropdown Problem
  • Edit on GitHub

8.9. Dropdown Problem¶

Dropdown problems allow the student to choose from a collection of answer options, presented as a dropdown list. Unlike multiple choice problems, whose answers are always visible directly below the question, dropdown problems don’t show answer choices until the student clicks the dropdown arrow.

Image of a dropdown problem

8.9.1. Create a Dropdown Problem¶

You can create dropdown problems in the Simple Editor or in the Advanced Editor.

Note

All problems must include labels for accessibility. The label generally includes the text of the main question in your problem. To add a label for a common problem, surround the text of the label with angle brackets pointed toward the text (>>label text<<).

8.9.1.1. Simple Editor¶

To create a dropdown problem, follow these steps.

  1. Under Add New Component, click Problem.

  2. In the Select Problem Component Type screen, click Dropdown on the Common Problem Types tab.

  3. In the new Problem component that appears, click Edit.

  4. Replace the default text with the text for your problem. Enter each of the possible answers on the same line, separated by commas.

  5. Determine the text of the problem to use as a label, and then surround that text with two sets of angle brackets (>><<).

  6. Select all the answer options, and then click the dropdown button.

    Image of the dropdown button

    When you do this, a double set of brackets ([[ ]]) appears and surrounds the answer options.

  7. Inside the brackets, surround the correct answer with parentheses.

  8. In the component editor, select the text of the explanation, and then click the explanation button to add explanation tags around the text.

    Image of the explanation button
  9. On the Settings tab, specify the settings that you want.

  10. Click Save.

For the example problem above, the text in the Problem component is the following.

>>What type of data are the following?<<

Age:
[[Nominal, Discrete, (Continuous)]]
Age, rounded to the nearest year:
[[Nominal, (Discrete), Continuous]]
Life stage - infant, child, and adult:
[[(Nominal), Discrete, Continuous]]

8.9.1.2. Advanced Editor¶

To create this problem in the Advanced Editor, click the Advanced tab in the Problem component editor, and then replace the existing code with the following code.

Problem Code:

<problem>
<p>
  <em>This exercise first appeared in HarvardX's PH207x Health in Numbers: Quantitative Methods in Clinical &amp; Public Health Research course, fall 2012.</em>
</p>
<p>What type of data are the following?</p>
<p>Age:</p>
<optionresponse>
  <optioninput options="('Nominal','Discrete','Continuous')" correct="Continuous" label="Age"/>
</optionresponse>
<p>Age, rounded to the nearest year:</p>
<optionresponse>
  <optioninput options="('Nominal','Discrete','Continuous')" correct="Discrete" label="Age, rounded to the nearest year"/>
</optionresponse>
<p>Life stage - infant, child, and adult:</p>
<optionresponse>
  <optioninput options="('Nominal','Discrete','Continuous')" correct="Nominal" label="Life stage"/>
</optionresponse>
</problem>

8.9.2. Dropdown Problem XML¶

8.9.2.1. Template¶

<problem>
<p>
  Problem text</p>
<optionresponse>
  <optioninput options="('Option 1','Option 2','Option 3')" correct="Option 2" label="label text"/>
</optionresponse>
  <solution>
    <div class="detailed-solution">
    <p>Explanation or Solution Header</p>
    <p>Explanation or solution text</p>
    </div>
  </solution>
</problem>
<problem>
 <p>Problem text</p>
  <optionresponse>
   options="('A','B')"
    correct="A"/>
    label="label text"
  </optionresponse>

  <solution>
    <div class="detailed-solution">
    <p>Explanation or Solution Header</p>
    <p>Explanation or solution text</p>
    </div>
  </solution>
</problem>

8.9.2.2. Tags¶

  • <optionresponse> (required): Indicates that the problem is a dropdown problem.
  • <optioninput> (required): Lists the answer options.

Tag: <optionresponse>

Indicates that the problem is a dropdown problem.

Attributes

(none)

Children

  • <optioninput>

Tag: <optioninput>

Lists the answer options.

Attributes

Attribute Description
options (required) Lists the answer options. The list of all answer options is surrounded by parentheses. Individual answer options are surrounded by single quotation marks (‘) and separated by commas (,).
correct (required) Indicates whether an answer is correct. Possible values are “true” and “false”. Only one correct attribute can be set to “true”.
label (required) Specifies the name of the response field.

Children

(none)

Next Previous

© Copyright 2015, edX.