<?xml version="1.0" encoding="UTF-8"?>
<!-- Teaching correction by CTM, 2026-10-16. Derived from the pinned STACK
     corpus/AlgMap-2-5.xml export; CC BY-SA 4.0. Original authors and source:
     ../corpus/manifest.json. The original export is preserved unchanged. -->
<quiz>
  <question type="stack">
    <name>
      <text>AlgMap-2.5 (corrected teaching copy)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>Reduce the following fraction to its lowest terms: \[\frac{@ev(a*c,simp)@}{@ev(b*c,simp)@}.\] <br /> [[input:ans]] [[validation:ans]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text><![CDATA[<p>Factorise the numerator and the denominator into prime factors, then cancel matching factors. In this example: <br /> \[ \frac{@factor(a*c)@}{@factor(b*c)@} = {@ta@}. \]</p>]]></text>
    </generalfeedback>
    <defaultgrade>1</defaultgrade>
    <penalty>0.1</penalty>
    <hidden>0</hidden>
    <idnumber/>
    <stackversion>
      <text/>
    </stackversion>
    <questionvariables>
      <text>a:ev((rand([1,3,5,7,9])*rand([1,-1])),simp);
b:ev((rand([2,4,6,8,10])*rand([1,-1])),simp);
c:ev(rand(5)+2,simp);
ta:ev((a*c)/(b*c),simp);</text>
    </questionvariables>
    <specificfeedback format="html">
      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
    </specificfeedback>
    <questionnote format="moodle_auto_format">
      <text>\[\frac{@ev(a*c,simp)@}{@ev(b*c,simp)@} = {@ta@}.\]</text>
    </questionnote>
    <questiondescription format="moodle_auto_format">
      <text/>
    </questiondescription>
    <questionsimplify>0</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>dot</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <prescribedmetadata/>
    <metadata>
     {"author":[{"firstName":"Tony","lastName":"Barnard","institution":"","year":"1999"}],"language":["en"],"isPartOf":"STACK Library - Algebra Refresher","license":"cc-sa-4.0","additional":{"UoE":{"Notes":"This is automatically generated metadata."}},"freeform":{}}
    </metadata>
    <variantsselectionseed/>
    <input>
      <name>ans</name>
      <type>algebraic</type>
      <tans>ta</tans>
      <boxsize>15</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint/>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords/>
      <allowwords/>
      <forbidfloat>1</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>1</checkanswertype>
      <mustverify>1</mustverify>
      <showvalidation>1</showvalidation>
      <options/>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>0</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text/>
      </feedbackvariables>
      <node>
        <name>0</name>
        <answertest>AlgEquiv</answertest><sans>ans</sans><tans>ta</tans>
        <testoptions/><quiet>0</quiet>
        <truescoremode>=</truescoremode><truescore>0</truescore>
        <truepenalty/><truenextnode>1</truenextnode><trueanswernote>1-0-T</trueanswernote>
        <truefeedback format="html"><text/></truefeedback>
        <falsescoremode>=</falsescoremode><falsescore>0</falsescore>
        <falsepenalty/><falsenextnode>-1</falsenextnode><falseanswernote>1-0-F</falseanswernote>
        <falsefeedback format="html"><text><![CDATA[<p>The fraction must have the same value as the original fraction.</p>]]></text></falsefeedback>
      </node>
      <node>
        <name>1</name>
        <answertest>LowestTerms</answertest><sans>ans</sans><tans>ta</tans>
        <testoptions/><quiet>0</quiet>
        <truescoremode>=</truescoremode><truescore>1</truescore>
        <truepenalty/><truenextnode>-1</truenextnode><trueanswernote>1-1-T</trueanswernote>
        <truefeedback format="html"><text/></truefeedback>
        <falsescoremode>=</falsescoremode><falsescore>0</falsescore>
        <falsepenalty/><falsenextnode>-1</falsenextnode><falseanswernote>1-1-F</falseanswernote>
        <falsefeedback format="html"><text><![CDATA[<p>The value is correct; now cancel common factors.</p>]]></text></falsefeedback>
      </node>
    </prt>
    <deployedseed>554625703</deployedseed>
    <deployedseed>2004313867</deployedseed>
    <deployedseed>1257826844</deployedseed>
    <deployedseed>533970977</deployedseed>
    <deployedseed>1878644045</deployedseed>
    <qtest>
      <testcase>1</testcase>
      <description/>
      <testinput>
        <name>ans</name>
        <value>ta</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty>0.0000000</expectedpenalty>
        <expectedanswernote>1-0-T | 1-1-T</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>2</testcase>
      <description/>
      <testinput>
        <name>ans</name>
        <value>(ev(a*c,simp))/(ev(b*c,simp))</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>0.0000000</expectedscore>
        <expectedpenalty>0.1000000</expectedpenalty>
        <expectedanswernote>1-0-T | 1-1-F</expectedanswernote>
      </expected>
    </qtest>
    <qtest>
      <testcase>3</testcase><description>Wrong value in lowest terms</description>
      <testinput><name>ans</name><value>123/127</value></testinput>
      <expected><name>prt1</name><expectedscore>0</expectedscore><expectedpenalty>0.1</expectedpenalty><expectedanswernote>1-0-F</expectedanswernote></expected>
    </qtest>
  </question>
</quiz>
