Commit fea40ce1 by muhammad-ammar

update default templates for unsupported responsetypes

parent 993cf9cd
...@@ -22,7 +22,7 @@ data: | ...@@ -22,7 +22,7 @@ data: |
<p>You can use the following example problems as models.</p> <p>You can use the following example problems as models.</p>
<schematicresponse> <schematicresponse>
<label>Make a voltage divider that splits the provided voltage evenly.</label> <p>Make a voltage divider that splits the provided voltage evenly.</p>
<center> <center>
<schematic height="500" width="600" parts="g,r" analyses="dc" <schematic height="500" width="600" parts="g,r" analyses="dc"
initial_value="[[&quot;v&quot;,[168,144,0],{&quot;value&quot;:&quot;dc(1)&quot;,&quot;_json_&quot;:0},[&quot;1&quot;,&quot;0&quot;]],[&quot;r&quot;,[296,120,0],{&quot;r&quot;:&quot;1&quot;,&quot;_json_&quot;:1},[&quot;1&quot;,&quot;output&quot;]],[&quot;L&quot;,[296,168,3],{&quot;label&quot;:&quot;output&quot;,&quot;_json_&quot;:2},[&quot;output&quot;]],[&quot;w&quot;,[296,216,168,216]],[&quot;w&quot;,[168,216,168,192]],[&quot;w&quot;,[168,144,168,120]],[&quot;w&quot;,[168,120,296,120]],[&quot;g&quot;,[168,216,0],{&quot;_json_&quot;:7},[&quot;0&quot;]],[&quot;view&quot;,-67.49999999999994,-78.49999999999994,1.6000000000000003,&quot;50&quot;,&quot;10&quot;,&quot;1G&quot;,null,&quot;100&quot;,&quot;1&quot;,&quot;1000&quot;]]"/> initial_value="[[&quot;v&quot;,[168,144,0],{&quot;value&quot;:&quot;dc(1)&quot;,&quot;_json_&quot;:0},[&quot;1&quot;,&quot;0&quot;]],[&quot;r&quot;,[296,120,0],{&quot;r&quot;:&quot;1&quot;,&quot;_json_&quot;:1},[&quot;1&quot;,&quot;output&quot;]],[&quot;L&quot;,[296,168,3],{&quot;label&quot;:&quot;output&quot;,&quot;_json_&quot;:2},[&quot;output&quot;]],[&quot;w&quot;,[296,216,168,216]],[&quot;w&quot;,[168,216,168,192]],[&quot;w&quot;,[168,144,168,120]],[&quot;w&quot;,[168,120,296,120]],[&quot;g&quot;,[168,216,0],{&quot;_json_&quot;:7},[&quot;0&quot;]],[&quot;view&quot;,-67.49999999999994,-78.49999999999994,1.6000000000000003,&quot;50&quot;,&quot;10&quot;,&quot;1G&quot;,null,&quot;100&quot;,&quot;1&quot;,&quot;1000&quot;]]"/>
...@@ -53,7 +53,7 @@ data: | ...@@ -53,7 +53,7 @@ data: |
</schematicresponse> </schematicresponse>
<schematicresponse> <schematicresponse>
<label>Make a high-pass filter.</label> <p>Make a high-pass filter.</p>
<center> <center>
<schematic height="500" width="600" parts="g,r,s,c" analyses="ac" <schematic height="500" width="600" parts="g,r,s,c" analyses="ac"
submit_analyses="{&quot;ac&quot;:[[&quot;NodeA&quot;,1,9]]}" submit_analyses="{&quot;ac&quot;:[[&quot;NodeA&quot;,1,9]]}"
......
...@@ -40,7 +40,7 @@ data: | ...@@ -40,7 +40,7 @@ data: |
return test_add(10, ans) return test_add(10, ans)
</script> </script>
<label>Enter two integers that sum to 10.</label> <p>Enter two integers that sum to 10.</p>
<textline size="40" correct_answer="3"/><br/> <textline size="40" correct_answer="3"/><br/>
<textline size="40" correct_answer="7"/> <textline size="40" correct_answer="7"/>
<solution> <solution>
...@@ -63,7 +63,7 @@ data: | ...@@ -63,7 +63,7 @@ data: |
return False return False
</script> </script>
<label>Enter two integers that sum to 20.</label> <p>Enter two integers that sum to 20.</p>
<textline size="40" correct_answer="11"/><br/> <textline size="40" correct_answer="11"/><br/>
<textline size="40" correct_answer="9"/> <textline size="40" correct_answer="9"/>
<solution> <solution>
......
...@@ -18,7 +18,7 @@ data: | ...@@ -18,7 +18,7 @@ data: |
and other values that apply.</p> and other values that apply.</p>
<p>You can use the following example problem as a model.</p> <p>You can use the following example problem as a model.</p>
<imageresponse> <imageresponse>
<label>What country is home to the Great Pyramid of Giza as well as the cities of Cairo and Memphis? Click the country on the map below.</label> <p>What country is home to the Great Pyramid of Giza as well as the cities of Cairo and Memphis? Click the country on the map below.</p>
<imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png" width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of Africa"/> <imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png" width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of Africa"/>
<solution> <solution>
<div class="detailed-solution"> <div class="detailed-solution">
......
...@@ -58,7 +58,7 @@ data: | ...@@ -58,7 +58,7 @@ data: |
''' '''
]]> ]]>
</script> </script>
<label>In the following image, click the objects until the cone is yellow and the cube is blue.</label> <p>In the following image, click the objects until the cone is yellow and the cube is blue.</p>
<jsinput gradefn="WebGLDemo.getGrade" <jsinput gradefn="WebGLDemo.getGrade"
get_statefn="WebGLDemo.getState" get_statefn="WebGLDemo.getState"
set_statefn="WebGLDemo.setState" set_statefn="WebGLDemo.setState"
......
...@@ -138,7 +138,7 @@ data: | ...@@ -138,7 +138,7 @@ data: |
<p><strong>Example Math Expression Problem</strong></p> <p><strong>Example Math Expression Problem</strong></p>
<symbolicresponse expect="m*c^2"> <symbolicresponse expect="m*c^2">
<label>What is Einstein's equation for the energy equivalent of a mass [mathjaxinline]m[/mathjaxinline]?</label> <p>What is Einstein's equation for the energy equivalent of a mass [mathjaxinline]m[/mathjaxinline]?</p>
<textline size="90" correct_answer="m*c^2" math="1"/> <textline size="90" correct_answer="m*c^2" math="1"/>
</symbolicresponse> </symbolicresponse>
<br/> <br/>
...@@ -146,11 +146,8 @@ data: | ...@@ -146,11 +146,8 @@ data: |
<p><strong>Example Numerical Problem</strong></p> <p><strong>Example Numerical Problem</strong></p>
<numericalresponse inline="1" answer="0.52"> <numericalresponse inline="1" answer="0.52">
<label>Estimate the energy savings (in J/y) if all the people ([mathjaxinline]3\times 10^8[/mathjaxinline]) in the U.&#xA0;S. switched from U.&#xA0;S. code to low-flow shower heads.</label> <label>Estimate the energy savings (in J/y) if all the people ([mathjaxinline]3\times 10^8[/mathjaxinline]) in the U.&#xA0;S. switched from U.&#xA0;S. code to low-flow shower heads.</label>
<p style="display:inline">Energy saved = </p> <formulaequationinput trailing_text="EJ/year" />
<textline inline="1"> <responseparam type="tolerance" default="0.02"/>
<responseparam type="tolerance" default="0.02"/>
</textline>
<p style="display:inline">&#xA0;EJ/year</p>
</numericalresponse> </numericalresponse>
<br/> <br/>
...@@ -176,7 +173,7 @@ data: | ...@@ -176,7 +173,7 @@ data: |
def test_add_to_ten(expect, ans): def test_add_to_ten(expect, ans):
return test_add(10, ans) return test_add(10, ans)
</script> </script>
<label>Enter two integers that sum to 10.</label> <p>Enter two integers that sum to 10.</p>
<textline size="40" correct_answer="3"/><br/> <textline size="40" correct_answer="3"/><br/>
<textline size="40" correct_answer="7"/> <textline size="40" correct_answer="7"/>
<solution> <solution>
...@@ -197,7 +194,7 @@ data: | ...@@ -197,7 +194,7 @@ data: |
except ValueError: except ValueError:
return False return False
</script> </script>
<label>Enter two integers that sum to 20.</label> <p>Enter two integers that sum to 20.</p>
<textline size="40" correct_answer="11"/><br/> <textline size="40" correct_answer="11"/><br/>
<textline size="40" correct_answer="9"/> <textline size="40" correct_answer="9"/>
<solution> <solution>
...@@ -213,10 +210,10 @@ data: | ...@@ -213,10 +210,10 @@ data: |
<p><strong>Example Image Mapped Input Problem</strong></p> <p><strong>Example Image Mapped Input Problem</strong></p>
<imageresponse> <imageresponse>
<label> <p>
What country is home to the Great Pyramid of Giza as well as the cities What country is home to the Great Pyramid of Giza as well as the cities
of Cairo and Memphis? Click the country on the map below. of Cairo and Memphis? Click the country on the map below.
</label> </p>
<imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png" <imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png"
width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of
Africa"/> Africa"/>
......
...@@ -35,7 +35,7 @@ data: | ...@@ -35,7 +35,7 @@ data: |
hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint) hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always') new_cmap.set_hint_and_mode(aid,hint,'always')
</script> </script>
<label>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</label> <p>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</p>
<textline correct_answer="python"/> <textline correct_answer="python"/>
<hintgroup hintfn="hint_fn"/> <hintgroup hintfn="hint_fn"/>
</customresponse> </customresponse>
......
...@@ -52,7 +52,7 @@ data: | ...@@ -52,7 +52,7 @@ data: |
<text> <text>
<p><h4>Problem With Adaptive Hint</h4></p> <p><h4>Problem With Adaptive Hint</h4></p>
<p>This problem demonstrates a question with hints, based on using the <tt class="tt">hintfn</tt> method.</p> <p>This problem demonstrates a question with hints, based on using the <tt class="tt">hintfn</tt> method.</p>
<customresponse cfn="test_str" expect="python"> <customresponse cfn="test_str" expect="python">
<script type="text/python" system_path="python_lib"> <script type="text/python" system_path="python_lib">
def test_str(expect, ans): def test_str(expect, ans):
...@@ -80,9 +80,9 @@ data: | ...@@ -80,9 +80,9 @@ data: |
hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint) hint = "&lt;font color='blue'&gt;Hint: {0}&lt;/font&gt;".format(hint)
new_cmap.set_hint_and_mode(aid,hint,'always') new_cmap.set_hint_and_mode(aid,hint,'always')
</script> </script>
<label>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</label> <p>What is the best programming language that exists today? You may enter your answer in upper or lower case, with or without quotes.</p>
<textline correct_answer="python"/> <textline correct_answer="python"/>
<hintgroup hintfn="hint_fn"/> <hintgroup hintfn="hint_fn"/>
</customresponse> </customresponse>
</text> </text>
</problem> </problem>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment