version 1.2, 2001/12/19 15:13:34
|
version 1.7, 2009/07/06 17:12:47
|
Line 1
|
Line 1
|
<problem> |
<problem> |
<script type="loncapa/perl">#Enter script here
|
|
$choice = &random(1,2,1);
|
<startouttext /> |
$chemString = &choose($choice,"Sodium Chloride","Potassium Chloride");
|
Enter your question text here. |
$chemFormula = &choose($choice,"NaCl","KCl");</script> |
The current answer is "NaCl" and it is case sensitive. |
<startouttext />Enter question text here. <br />
|
<endouttext /> |
What is the chemical formula for $chemString?<endouttext /> |
|
<stringresponse answer="$chemFormula" type="cs"> |
<stringresponse answer="NaCl" type="cs"> |
<textline> |
<textline></textline> |
</textline> |
<hintgroup> |
<hintgroup><startouttext />Add hint text here.<endouttext /> |
<startouttext /><endouttext /> |
</hintgroup> |
</hintgroup> |
</stringresponse> |
</stringresponse> |
|
|
</problem> |
</problem> |