mdlAufgabengeneratoren/formulas_fraction_addition_quiz.xml

10 lines
2.7 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<quiz><question type="formulas"><name><text>Addition von 2 ungleichnamigen Brüchen 0</text></name><questiontext format="html"><text>&lt;![CDATA[ &lt;p&gt;Addiere die Brüche und kürze das Ergebnis so weit wie möglich.&lt;/p&gt;
&lt;p&gt;{#A} &lt;/p&gt; ]]&gt; </text></questiontext><generalfeedback format="html"><text> </text></generalfeedback><defaultgrade>1.0000000</defaultgrade><penalty>0.3333333</penalty><hidden>0</hidden><idnumber> </idnumber><correctfeedback format="html"><text>&lt;![CDATA[ &lt;p&gt;Die Antwort ist richtig.&lt;/p&gt; ]]&gt; </text></correctfeedback><partiallycorrectfeedback format="html"><text>&lt;![CDATA[ &lt;p&gt;Die Antwort ist teilweise richtig.&lt;/p&gt; ]]&gt; </text></partiallycorrectfeedback><incorrectfeedback format="html"><text>&lt;![CDATA[ &lt;p&gt;Die Antwort ist falsch.&lt;/p&gt; ]]&gt;</text></incorrectfeedback><shownumcorrect /><varsrandom><text> </text></varsrandom><varsglobal><text>n = [5, 3];
d = [9, 6];</text></varsglobal><answernumbering><text>ABCD</text></answernumbering><answers><partindex><text>0</text></partindex><placeholder><text>#A</text></placeholder><answermark><text>1</text></answermark><answertype><text>0</text></answertype><numbox><text>2</text></numbox><vars1><text>g = gcd(d[0],d[1]);
cd = d[0]*d[1]/pow(g,2);
e = [cd / d[0], cd / d[1]];
nums = [n[0]*e[0], n[1]*e[1]];
thesumnum = nums[0] + nums[1]</text></vars1><answer><text>[thesumnum, cd]</text></answer><answernotunique><text>0</text></answernotunique><vars2><text>&lt;![CDATA[ ga = _0 == thesumnum &amp;&amp; _1 == cd; gb = (_0 / _1) == (thesumnum / cd); ]]&gt;</text></vars2><correctness><text>ga + 0.5*gb</text></correctness><unitpenalty><text>1</text></unitpenalty><postunit><text> </text></postunit><ruleid><text>1</text></ruleid><otherrule><text> </text></otherrule><subqtext format="html"><text>&lt;![CDATA[ &lt;p&gt;Berechne:&lt;/p&gt; &lt;p&gt;\(\Large \displaystyle \frac{{n[0]}}{{d[0]}} + \frac{{n[1]}}{{d[1]}} =\) {_0} / {_1}&lt;/p&gt; ]]&gt; </text></subqtext><feedback format="html"><text>&lt;![CDATA[ &lt;h4&gt;Lösungshinweis&lt;/h4&gt;
&lt;p&gt;Die korrekte Lösung ist:&lt;/p&gt;
&lt;p&gt;\(\Large \displaystyle \frac{{n[0]}}{{d[0]}} + \frac{{n[1]}}{{d[1]}} = \frac{{nums[0]}}{{cd}} + \frac{{nums[1]}}{{cd}} = \frac{{thesumnum}}{{cd}}\) &lt;/p&gt; ]]&gt;</text></feedback><correctfeedback format="html"><text>&lt;![CDATA[ &lt;p&gt;Richtig!&lt;/p&gt;]]&gt;</text></correctfeedback><partiallycorrectfeedback format="html"><text>&lt;![CDATA[ &lt;p&gt;Teilweise richtig.&lt;/p&gt;]]&gt;</text></partiallycorrectfeedback><incorrectfeedback format="html"><text>&lt;![CDATA[ &lt;p&gt;Leider nicht richtig.&lt;/p&gt;]]&gt;</text></incorrectfeedback></answers></question></quiz>