@@ -483,7 +483,7 @@ You may want to present different students with different problems, or different
Note that *problem randomization* is different from the **Randomization** setting in Studio. The **Randomization** setting randomizes variables within a single problem. Problem randomization offers different problems or problem versions to different students.
.. note:: Creating problems with versions that can be randomized requires you to export your course, edit some of your course's XML files in a text editor, and then re-import your course. We recommend that you create a backup copy of your course before you do this. We also recommend that you only edit the files that will contain polls in the text editor if you're very familiar with editing XML.
.. note:: Creating problems with versions that can be randomized requires you to export your course, edit some of your course's XML files in a text editor, and then re-import your course. We recommend that you create a backup copy of your course before you do this. We also recommend that you only edit your course files in the text editor if you're very familiar with editing XML.
@@ -13,16 +13,16 @@ In drag and drop problems, students respond to a question by dragging text or ob
Create a Drag and Drop Problem
*********************************
To create a drag and drop problem, you'll need the following files:
To create the drag and drop problem that appears in the image above, you'll download two files from edX, upload these files to to the **Files & Uploads** page, and then add the code for the problem to a Problem component.
* Allopurinol.gif
* AllopurinolAnswer.gif
#. Download the following files from edX:
To download both these files in a .zip archive, go to http://files.edx.org/DragAndDropProblemFiles.zip.
* Allopurinol.gif
* AllopurinolAnswer.gif
To create the molecule editor that appears in the image above, you'll upload the files for this problem, and then paste the code below into a Problem component.
To download both these files in a .zip archive, click http://files.edx.org/DragAndDropProblemFiles.zip.
#. Upload the Allopurinol.gif and AllopurinolAnswer.gif files to the **Files & Uploads** page.
2. Upload the Allopurinol.gif and AllopurinolAnswer.gif files to the **Files & Uploads** page.
#. In the unit where you want to create the problem, click **Problem** under **Add New Component**, and then click the **Advanced** tab.
@@ -38,8 +38,6 @@ For example, the following example problems require the Advanced Editor.
For more information about including a Python script in your problem, see :ref:`Write Your Own Grader`.
.. 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<<).
==================
Simple Editor
==================
...
...
@@ -283,6 +281,10 @@ Creates a response field in the LMS where students enter a response.
.. list-table::
:widths: 20 80
* - Attribute
- Description
* - label (required)
- Specifies the name of the response field.
* - size (optional)
- Defines the width, in characters, of the response field in the LMS.
...
...
@@ -299,6 +301,8 @@ Specifies a tolerance, or margin of error, for an answer.
.. list-table::
:widths: 20 80
* - Attribute
- Description
* - type (optional)
- "tolerance": Defines a tolerance for a number
* - default (optional)
...
...
@@ -319,6 +323,8 @@ As with all Python, indentation matters, even though the code is embedded in XML
hint = 'If the ball costs 10 cents, and the bat costs one dollar more than the ball, how much does the bat cost? If that is the cost of the bat, how much do the ball and bat cost together?'
elif '.05' in ans:
hint = 'Make sure to enter the number of cents as a whole number.'
if hint:
hint = "<font color='blue'>Hint: {0}</font>".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always')
</script>
<p>
If a bat and a ball cost $1.10 together, and the bat costs $1.00 more than the ball, how much does the ball cost? Enter your answer in cents, and include only the number (that is, do not include a $ or a ¢ sign).</p>
<p>
<customresponse cfn="test_str" expect="5">
<textline correct_answer="5" label="How much does the ball cost?"/>