<?xml version="1.0" encoding="UTF-8"?>
<quiz>

<!-- question: 8768441  -->
  <question type="stack">
    <name>
      <text>Brüche addieren (mit Fragevarianten)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<h4>Version der Aufgabe mit Fragevarianten</h4>
<p>Bitte führen Sie die folgende Addition von Brüchen durch: \( {@b1@} + {@b2@} \)</p>
<p>Antwort: [[input:ans1]] [[validation:ans1]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>8.0000000</defaultgrade>
    <penalty>0.1000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2025073100</text>
    </stackversion>
    <questionvariables>
      <text>/*
Die Aufgabe „Brüche addieren“ von Michael Kallweit und Jonas Lache, Fakultät für Mathematik, Ruhr-Universität Bochum, ist lizenziert unter einer CC BY-SA 4.0 International Lizenz (https://creativecommons.org/licenses/by-sa/4.0/). Die vorliegende Version wurde von Jonas Lache, Team E-Learning@Hochschule Ruhr West, überarbeitet und unter dem Titel „Brüche addieren (mit Fragevarianten)“ wiederveröffentlicht (letzte Änderung: 28.08.2025).
*/

z1: 1;
n1: rand(5)+2;
z2: rand_with_step(1,5,1);
n2: rand_with_prohib(2,6,[n1,z2,z2/2]);
/* Weitere Möglichkeit: rand([1,2,3]); */

b1: z1/n1;
b2: z2/n2;
ta: b1+b2;
taf: (z1+z2)/(n1+n2); /*Fehler, dass Zähler und Nenner jeweils addiert wurden*/</text>
    </questionvariables>
    <specificfeedback format="html">
      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
    </specificfeedback>
    <questionnote format="html">
      <text><![CDATA[<p>{@{ b1, b2 }@}</p>]]></text>
    </questionnote>
    <questiondescription format="html">
      <text></text>
    </questiondescription>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text><![CDATA[<p>Richtige Antwort, gut gemacht!</p>]]></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text><![CDATA[<p>Ihre Antwort ist teilweise korrekt.</p>]]></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text><![CDATA[<p>Falsche Antwort.</p>]]></text>
    </prtincorrect>
    <decimals>.</decimals>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>dot</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>algebraic</type>
      <tans>ta</tans>
      <boxsize>15</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>1</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>0</checkanswertype>
      <mustverify>1</mustverify>
      <showvalidation>1</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>0</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text>taf: (z1+z2)/(n1+n2);</text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <description></description>
        <answertest>CasEqual</answertest>
        <sans>ans1</sans>
        <tans>ta</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>=</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-1-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Super, Ihre Antwort ist richtig! </p>]]></text>
        </truefeedback>
        <falsescoremode>=</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>1</falsenextnode>
        <falseanswernote>prt1-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>Leider ist Ihre Antwort {@ans1@} falsch.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <description></description>
        <answertest>AlgEquiv</answertest>
        <sans>ans1</sans>
        <tans>taf</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Kann es sein, dass Sie die Zähler und Nenner der beiden Brüche jeweils addiert haben? Dieser Ansatz ist leider falsch.</p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
    </prt>
    <deployedseed>562932716</deployedseed>
    <deployedseed>1756730155</deployedseed>
    <deployedseed>480668016</deployedseed>
    <deployedseed>63413922</deployedseed>
    <deployedseed>709557193</deployedseed>
    <deployedseed>2015542671</deployedseed>
    <deployedseed>1073464286</deployedseed>
    <deployedseed>375455763</deployedseed>
    <deployedseed>580471780</deployedseed>
    <deployedseed>1545900820</deployedseed>
    <qtest>
      <testcase>1</testcase>
      <description>Führt die Verwendung der Musterlösung zur vollen Punktzahl?</description>
      <testinput>
        <name>ans1</name>
        <value>ta</value>
      </testinput>
      <expected>
        <name>prt1</name>
        <expectedscore>1.0000000</expectedscore>
        <expectedpenalty>0.0000000</expectedpenalty>
        <expectedanswernote>prt1-1-T</expectedanswernote>
      </expected>
    </qtest>
  </question>

<!-- question: 8768440  -->
  <question type="stack">
    <name>
      <text>Brüche addieren (ohne Fragevarianten)</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<h4>Version der Aufgabe ohne Fragevarianten</h4>
<p>Bitte führen Sie die folgende Addition von Brüchen durch: \( {@b1@} + {@b2@} \)</p>
<p>Antwort: [[input:ans1]] [[validation:ans1]]</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>8.0000000</defaultgrade>
    <penalty>0.1000000</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <stackversion>
      <text>2025073100</text>
    </stackversion>
    <questionvariables>
      <text>/*
Die Aufgabe „Brüche addieren“ von Michael Kallweit und Jonas Lache, Fakultät für Mathematik, Ruhr-Universität Bochum, ist lizenziert unter einer CC BY-SA 4.0 International Lizenz (https://creativecommons.org/licenses/by-sa/4.0/). Die vorliegende Version wurde von Jonas Lache, Team E-Learning@Hochschule Ruhr West, überarbeitet und unter dem Titel „Brüche addieren (ohne Fragevarianten)“ wiederveröffentlicht (letzte Änderung: 28.08.2025).
*/

z1: 1;
n1: rand(5)+2;
z2: rand_with_step(1,5,1);
n2: rand_with_prohib(2,6,[n1,z2,z2/2]);
/* Weitere Möglichkeit: rand([1,2,3]); */

b1: z1/n1;
b2: z2/n2;
ta: b1+b2;
taf: (z1+z2)/(n1+n2); /*Fehler, dass Zähler und Nenner jeweils addiert wurden*/</text>
    </questionvariables>
    <specificfeedback format="html">
      <text><![CDATA[<p>[[feedback:prt1]]</p>]]></text>
    </specificfeedback>
    <questionnote format="html">
      <text><![CDATA[<p>Bitte führen Sie die folgende Addition von Brüchen durch: \( {@b1@} + {@b2@} \)</p>]]></text>
    </questionnote>
    <questiondescription format="html">
      <text></text>
    </questiondescription>
    <questionsimplify>1</questionsimplify>
    <assumepositive>0</assumepositive>
    <assumereal>0</assumereal>
    <prtcorrect format="html">
      <text><![CDATA[<p>Richtige Antwort, gut gemacht!</p>]]></text>
    </prtcorrect>
    <prtpartiallycorrect format="html">
      <text><![CDATA[<p>Ihre Antwort ist teilweise korrekt.</p>]]></text>
    </prtpartiallycorrect>
    <prtincorrect format="html">
      <text><![CDATA[<p>Falsche Antwort.</p>]]></text>
    </prtincorrect>
    <decimals>.</decimals>
    <scientificnotation>*10</scientificnotation>
    <multiplicationsign>dot</multiplicationsign>
    <sqrtsign>1</sqrtsign>
    <complexno>i</complexno>
    <inversetrig>cos-1</inversetrig>
    <logicsymbol>lang</logicsymbol>
    <matrixparens>[</matrixparens>
    <isbroken>0</isbroken>
    <variantsselectionseed></variantsselectionseed>
    <input>
      <name>ans1</name>
      <type>algebraic</type>
      <tans>ta</tans>
      <boxsize>15</boxsize>
      <strictsyntax>1</strictsyntax>
      <insertstars>0</insertstars>
      <syntaxhint></syntaxhint>
      <syntaxattribute>0</syntaxattribute>
      <forbidwords></forbidwords>
      <allowwords></allowwords>
      <forbidfloat>1</forbidfloat>
      <requirelowestterms>0</requirelowestterms>
      <checkanswertype>0</checkanswertype>
      <mustverify>1</mustverify>
      <showvalidation>1</showvalidation>
      <options></options>
    </input>
    <prt>
      <name>prt1</name>
      <value>1.0000000</value>
      <autosimplify>0</autosimplify>
      <feedbackstyle>1</feedbackstyle>
      <feedbackvariables>
        <text>taf: (z1+z2)/(n1+n2);</text>
      </feedbackvariables>
      <node>
        <name>0</name>
        <description></description>
        <answertest>CasEqual</answertest>
        <sans>ans1</sans>
        <tans>ta</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>=</truescoremode>
        <truescore>1</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-1-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Super, Ihre Antwort ist richtig! </p>]]></text>
        </truefeedback>
        <falsescoremode>=</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>1</falsenextnode>
        <falseanswernote>prt1-1-F</falseanswernote>
        <falsefeedback format="html">
          <text><![CDATA[<p>Leider ist Ihre Antwort {@ans1@} falsch.</p>]]></text>
        </falsefeedback>
      </node>
      <node>
        <name>1</name>
        <description></description>
        <answertest>AlgEquiv</answertest>
        <sans>ans1</sans>
        <tans>taf</tans>
        <testoptions></testoptions>
        <quiet>0</quiet>
        <truescoremode>+</truescoremode>
        <truescore>0.5</truescore>
        <truepenalty></truepenalty>
        <truenextnode>-1</truenextnode>
        <trueanswernote>prt1-2-T</trueanswernote>
        <truefeedback format="html">
          <text><![CDATA[<p>Kann es sein, dass Sie die Zähler und Nenner der beiden Brüche jeweils addiert haben? Dieser Ansatz ist leider falsch.</p>]]></text>
        </truefeedback>
        <falsescoremode>-</falsescoremode>
        <falsescore>0</falsescore>
        <falsepenalty></falsepenalty>
        <falsenextnode>-1</falsenextnode>
        <falseanswernote>prt1-2-F</falseanswernote>
        <falsefeedback format="html">
          <text></text>
        </falsefeedback>
      </node>
    </prt>
  </question>

</quiz>