File:  [LON-CAPA] / doc / homework / Attic / question.2.xml
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jun 20 19:27:56 2000 UTC (23 years, 10 months ago) by albertel
Branches: MAIN
CVS tags: version_0_4, stable_2002_spring, stable_2002_july, stable_2002_april, stable_2001_fall, STABLE, HEAD
-adding homework documentation

<problem>
  <include>
    <parserlib>multiple_choice_tag</parserlib>
  </include
  <outtext>
    Please select the fruit from the list below.  
  </outtext>
  <multiplechoice
    numoftrueleafs=2
    numoffalseleafs=4
    numofpresentedleafs=4>  
  </multiplechoice>
  <randomlist> 
    <comment>
      this tag implements a condition like:
      condition="&ismemberoflist(1,@whichfalse)"
    </comment>

    <multiplechoiceresponse type="false">
      <radio value=false> Trucks </radio>
    </multiplechoiceresponse>
    <multiplechoiceresponse type="false">
      <radio value=false> Cars </radio>
    </multiplechoiceresponse>
    <multiplechoiceresponse type="false">
      <radio value=false> Guy Albertelli </radio>
    </multiplechoiceresponse>
    <multiplechoiceresponse type="false">
      <radio value=false> Computers </radio>
    </multiplechoiceresponse>

    <comment>
      type true gives a condition similar to
      "1==$whichtrue"
    </comment>
    <multiplechoiceresponse type="true">
      <radio value=true condition="1==$whichtrue">Oranges</radio>
    </multiplechoiceresponse>
    <multiplechoiceresponse type="true">
      <radio value=true condition="2==$whichtrue">Tomatoes</radio>
    </multiplechoiceresponse>
  </randomlist>
</problem>

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