File:  [LON-CAPA] / loncom / homework / templates / StringResponse.problem
Revision 1.2: download - view: text, annotated - select for diffs
Wed Dec 19 15:13:34 2001 UTC (22 years, 4 months ago) by albertel
Branches: MAIN
CVS tags: stable_2002_spring, stable_2002_april, HEAD
- had them backwards,
- there were some typos

<problem>
<script type="loncapa/perl">#Enter script here
$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>
    <hintgroup><startouttext />Add hint text here.<endouttext />
    </hintgroup>
</stringresponse>
</problem>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>