[LON-CAPA-cvs] cvs: loncom /homework/templates MultipleAnswerEither.problem MultipleAnswerEither.problem.meta MultipleAnswerUnordered.problem MultipleAnswerUnordered.problem.meta doc/loncapafiles loncapafiles.lpml
www
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 06 Jul 2007 17:32:42 -0000
www Fri Jul 6 13:32:42 2007 EDT
Added files:
/loncom/homework/templates MultipleAnswerEither.problem
MultipleAnswerEither.problem.meta
MultipleAnswerUnordered.problem
MultipleAnswerUnordered.problem.meta
Modified files:
/doc/loncapafiles loncapafiles.lpml
Log:
Templates for multi-answer responses.
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.549 doc/loncapafiles/loncapafiles.lpml:1.550
--- doc/loncapafiles/loncapafiles.lpml:1.549 Thu Jul 5 22:29:32 2007
+++ doc/loncapafiles/loncapafiles.lpml Fri Jul 6 13:32:31 2007
@@ -2,7 +2,7 @@
"http://lpml.sourceforge.net/DTD/lpml.dtd">
<!-- loncapafiles.lpml -->
-<!-- $Id: loncapafiles.lpml,v 1.549 2007/07/06 02:29:32 albertel Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.550 2007/07/06 17:32:31 www Exp $ -->
<!--
@@ -1409,6 +1409,10 @@
simple.task.meta;
multiple_instance.task;
multiple_instance.task.meta;
+MultipleAnswerEither.problem;
+MultipleAnswerEither.problem.meta;
+MultipleAnswerUnordered.problem;
+MultipleAnswerUnordered.problem.meta;
optional_criteria.task;
optional_criteria.task.meta;
ClickImageExample.problem;
Index: loncom/homework/templates/MultipleAnswerEither.problem
+++ loncom/homework/templates/MultipleAnswerEither.problem
<problem>
<script type="loncapa/perl">#Enter the computations here
$a=&random(1,10,1);
$b=$a*$a;
</script>
<startouttext />
If <m eval="on">$x^2=$b$</m>, what is a possible value of <m>$x$</m>?
<endouttext />
<numericalresponse>
<answergroup type="ordered">
<answer name="negative" type="ordered">
<value>-$a</value>
</answer>
<answer name="positive" type="ordered">
<value>$a</value>
</answer>
</answergroup>
<responseparam type="tolerance" default="5%" name="tol"
description="Numerical Tolerance" />
<responseparam name="sig" type="int_range,0-16" default="0,15"
description="Significant Figures" />
<textline readonly="no" />
</numericalresponse>
</problem>
Index: loncom/homework/templates/MultipleAnswerEither.problem.meta
+++ loncom/homework/templates/MultipleAnswerEither.problem.meta
<title>One of Multiple Answers Numerical Problem</title>
Index: loncom/homework/templates/MultipleAnswerUnordered.problem
+++ loncom/homework/templates/MultipleAnswerUnordered.problem
<problem>
<script type="loncapa/perl">
$a = &random(1,7,1);
$b = $a*$a;
</script>
<startouttext />
What are the factors of
<m eval="on">$x^2 - $b$</m>?
<endouttext />
<formularesponse>
<answergroup type="ordered">
<answer name="both" type="unordered">
<value>x-$a</value><value>x+$a</value>
</answer>
</answergroup>
<textline readonly="no" size="10" />
<textline readonly="no" size="10" />
</formularesponse>
</problem>
Index: loncom/homework/templates/MultipleAnswerUnordered.problem.meta
+++ loncom/homework/templates/MultipleAnswerUnordered.problem.meta
<title>Unordered Multi-Answer Formula Response Problem</title>