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