Skip to content
Snippets Groups Projects
Select Git revision
  • a1714f4838786b0359677dbc7c62d3dc647a6b19
  • master default protected
  • pymilter-1.0.4
  • pymilter-1.0.3
  • pymilter-1.0.2
  • pymilter-1.0.1
  • pymilter-1_0
  • milter-0_8_18
  • pymilter-0_9_8
  • pymilter-0_9_7
  • pymilter-0_9_6
  • pymilter-0_9_5
  • pymilter-0_9_4
  • pymilter-0_9_2
  • pymilter-0_9_1
  • pymilter-0_9_0
  • pymilter-0_8_12
  • pymilter-0_8_11
  • pymilter-0_8_10
  • pymilter-0_8_9
  • milter-0_8_8
  • milter-0_8_7
22 results

testsample.py

Blame
  • input-sample-questions.xml 136.41 KiB
    <?xml version="1.0" encoding="UTF-8"?>
    <quiz>
    <!-- question: 0  -->
      <question type="category">
        <category>
          <text>top/Default for Scratch/Input Samples</text>
        </category>
        <info format="moodle_auto_format">
          <text></text>
        </info>
        <idnumber></idnumber>
      </question>
    
    <!-- question: 7543  -->
      <question type="description">
        <name>
          <text>Style check: HELM</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<h1>HELM style check</h1>
    
    <p><code>HELM_keypoint</code> div class.</p>
    <div class="HELM_keypoint">
    <h4>Key Point</h4>
    <p>This should be in a box.</p>
    </div>
    
    <p><code>HELM_example</code> h4 class.</p>
    <h4 class="HELM_example">Example</h4>
    <p>Just the h4 heading above is in a different style.</p>
    
    <p><code>HELM_solution</code> h4 class.</p>
    <h4 class="HELM_solution">Solution</h4>
    <p>Just the h4 heading above is in a different style.</p>
    
    <hr>
    <h4 class="HELM_example">Example</h4>
    <p>Identify the index and base in the following expressions. </p>
    <ol class="HELM_parts_inline">
    <li> Ex 1. </li>
    <li> Ex 2. </li>
    <li> Ex 3. </li>
    </ol>
    
    <h4 class="HELM_solution">Solution</h4>
    <ol class="HELM_parts">
      <li>In the expression ..., 8 is the base and 11 is the index.</li>
      <li>In the expression ..., -2 is the base and 5 is the index.</li>
      <li>In the expression ..., p is the base and -q is the index.<p>
      </p><p>The interpretation of a negative index will be given
      in sub-section 4 which starts on page 31.</p></li>
    </ol>
    
    <p class="HELM_exercise">Exercise</p>
    <p>Just the paragraph above is in a different style.</p>]]></text>
        </questiontext>
        <generalfeedback format="moodle_auto_format">
          <text></text>
        </generalfeedback>
        <defaultgrade>0.0000000</defaultgrade>
        <penalty>0.0000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
      </question>
    
    <!-- question: 7544  -->
      <question type="description">
        <name>
          <text>Style check: proof.</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<h1>Check of proof styles</h1>
    
    <p>From STACK 4.3 we support the following CSS styles to enable consistent display of mathematical proof, and arguments in general.</p>
    
    <h3>&lt;div class=&quot;proof&quot;&gt;</h3>
    
    <p>This is typical question style, from the Moodle theme, containing the following proof.</p>
    <div class="proof">
    <p>Let P(n) be the statement [...] </p>
    <p>From which we see that.</p>
    </div>
    <p>Back to the typical Moodle style.</p>
    
    <h3>&lt;div class=&quot;proof-block&quot;&gt;</h3>
    
    <p>This class allows the teacher to highlight sub-components of a proof.  It is intended to be a nested sub-proof block of a main proof.</p>
    
    This is typical question style, from the Moodle theme, containing the following proof.
    <div class="proof">
    This proof has two cases.
    <div class="proof-block">
    <p>If n is odd then we have</p>
    <p>[...]</p>
    <p>and so ...</p>
    </div>
    <div class="proof-block">
    <p>If n is even then we have</p>
    <div class="proof-block">
    <p>a. even more subcases.</p>
    </div>
    <div class="proof-block">
    <p>b. even more subcases.</p>
    </div>
    <p>and so ...</p>
    </div>
    <p>From which we see that in all cases the proof holds.</p>
    </div>
    <p>Back to the typical Moodle style.</p>
    
    <h3>&lt;div class=&quot;proof-line&quot;&gt;, &lt;div class=&quot;proof-num&quot;&gt;, &lt;div class=&quot;proof-step&quot;&gt;, `&lt;div class=&quot;proof-comment&quot;&gt;</h3>
    
    <p>A typical proof consists of individual lines. Each line is numbered, so we can refer to them later.  The main "meat" of the line is the "proof step" and there is an optional comment.  The proof comment is designed for a comment, to allow an input to ask a question or to act as the second column in a two column proof.<p>
    
    Consider the following proof by induction. \(P(n)\)
    <div class="proof">
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">1.</div>
     <div class="proof-step">Let \(P(n)\) be the statement</div>
     <div class="proof-comment">The first block of an induction proof must be a clear statement of the "induction hypothesis".</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">2.</div>
     <div class="proof-step">.... some maths ....</div>
     <div class="proof-comment">Notice, in this case, we have a purely algebraic induction hypothesis.</div>
    </div>
    </div>
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">3.</div>
     <div class="proof-step">Since</div>
     <div class="proof-comment">This block is known as the "base case".</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">4.</div>
     <div class="proof-step">Something profound and something else</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">5.</div>
     <div class="proof-step">it follows that P(1) is true.</div>
    </div>
    </div>
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">6.</div>
     <div class="proof-step">Assume that P(n) is true.</div>
     <div class="proof-comment">This block is known as the "induction step".</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">7.</div>
     <div class="proof-step">.... lots of complex working ....</div>
     <div class="proof-comment">We just consider the sum which occurs in P(n+1) and start to rearrange this.</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">8.</div>
     <div class="proof-step">More working</div>
     <div class="proof-comment">We are assuming P(n) is true, and here we use this fact.</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">9.</div>
     <div class="proof-step">More working.</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">10.</div>
     <div class="proof-step">Which gives us what we want</div>
     <div class="proof-comment">Notice we have rearranged the algebra to give us the right hand side of P(n+1).</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">11.</div>
     <div class="proof-step">Hence P(n+1) is true.</div>
     <div class="proof-comment">This block is the conclusion of the proof.</div>
    </div>
    </div>
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">12.</div>
     <div class="proof-step">Since P(1) and P(n) implies P(n+1) it follows that P(n) is true for all n by the principal of mathematical induction.</div>
    </div>
    </div>
    </div>
    
    <h3>&lt;div class=&quot;proof-column&quot;&gt;, &lt;div class=&quot;proof-column-2&quot;&gt;</h3>
    
    <p>Alternatively, you can use columns, which are fixed at a width of 48%.  The design assumes two columns and line numbers. Additionally, `proof-column-2` has a different visual style for emphasis.</p>
    
    <p>Here is a proof of the great and wonderful theorem.</p>
     <div class="proof">
      The proof has two cases.
      <div class="proof-block">
       <div class="proof-line">
        <div class="proof-num">1.</div>
        <div class="proof-column">The proof itself is in the first column.</div>
        <div class="proof-column-2">The second column can contain comments, here in <code>proof-column-2</code> style. </div>
       </div>
       <div class="proof-line">
        <div class="proof-num">2.</div>
        <div class="proof-column">The proof continues.</div>
        <div class="proof-column-2">With further comments.</div>
       </div>
      </div>
      <div class="proof-block">
       <div class="proof-line">
        <div class="proof-num">3.</div>
        <div class="proof-column">The second case of the proof.</div>
        <div class="proof-column">The second column can contain comments, here in <code>proof-column</code> style. </div>
       </div>
       <div class="proof-line">
        <div class="proof-num">4.</div>
        <div class="proof-column">The proof continues.</div>
        <div class="proof-column">With further comments.</div>
       </div>
       <div class="proof-block">
        <div class="proof-line">
         <div class="proof-num">5.</div>
         <div class="proof-column">The proof continues.</div>
         <div class="proof-column">With further comments.</div>
        </div>
        <div class="proof-line">
         <div class="proof-num">6.</div>
         <div class="proof-column">The proof continues, without comment.</div>
        </div>
       </div>
      </div>
     </div>
    
    <h3>&lt;div class=&quot;proof-column&quot;&gt;</h3>
    
    <div class="proof-line">
     <div class="proof-column">Lines don't need to have <code>proof-num</code> or <code>proof-block</code></div>
     <div class="proof-column">With further comments.</div>
    </div>
    <div class="proof-line">
     <div class="proof-column">The proof continues.</div>
     <div class="proof-column-2">With further comments.</div>
    </div>
    <div class="proof-line">
     <div class="proof-column">This concludes the proof.</div>
    </div>
    
    <p>It is possible to use `proof-column-2` style in the first column, but this looks odd and is not recommended.  The `proof-column-2` style is intended for only the second column.  The `proof-column` style is intended to be used in both columns.</p>
    
    <p>Consider the following proof by induction. \(P(n)\)</p>
    <div class="proof">
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">1.</div>
     <div class="proof-column">Let P(n) be the statement</div>
     <div class="proof-column-2">The first block of an induction proof must be a clear statement of the "induction hypothesis".</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">2.</div>
     <div class="proof-column">.... some maths ....</div>
     <div class="proof-column-2">Notice, in this case, we have a purely algebraic induction hypothesis.</div>
    </div>
    </div>
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">3.</div>
     <div class="proof-column">Since</div>
     <div class="proof-column-2">This block is known as the "base case".</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">4.</div>
     <div class="proof-column">Something profound and something else</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">5.</div>
     <div class="proof-column">it follows that P(1) is true.</div>
    </div>
    </div>
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">6.</div>
     <div class="proof-column">Assume that P(n) is true.</div>
     <div class="proof-column-2">This block is known as the "induction step".</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">7.</div>
     <div class="proof-column">.... lots of complex working ....</div>
     <div class="proof-column-2">We just consider the sum which occurs in P(n+1) and start to rearrange this.</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">8.</div>
     <div class="proof-column">More working</div>
     <div class="proof-column-2">We are assuming P(n) is true, and here we use this fact.</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">9.</div>
     <div class="proof-column">More working.</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">10.</div>
     <div class="proof-column">Which gives us what we want</div>
     <div class="proof-column-2">Notice we have rearranged the algebra to give us the right hand side of P(n+1).</div>
    </div>
    <div class="proof-line">
     <div class="proof-num">11.</div>
     <div class="proof-column">Hence P(n+1) is true.</div>
     <div class="proof-column-2">This block is the conclusion of the proof.</div>
    </div>
    </div>
    <div class="proof-block">
    <div class="proof-line">
     <div class="proof-num">12.</div>
     <div class="proof-column">Since P(1) and P(n) implies P(n+1) it follows that P(n) is true for all n by the principal of mathematical induction.</div>
    </div>
    </div>
    </div>
    </div>
    
    
    <h3>&lt;ol class=&quot;proof-steps&quot;&gt;</h3>
    
    <p>This class enables ordered lists to have connected numbered statements.</p>
    
    <ol class="proof-steps">
    <li>Let A be an n by n matrix and let R be the reduced row echelon form of A.</li>
    <li>We will show first that det(A) is not zero if and only if det(R) is not zero.</li>
    <li>Let <ol>
    <li>E1,</li>
    <li>E2,</li>
    </ol> ... Er be the elementary matrices corresponding to the elementary row operations that reduce A to R.</li>
    <li>Then Er ... E1 A = [[input:ans1]]]</li>
    <li>Taking determinants of both sides, we obtain: det(Er) ... det(E_1) det(A) = det(R).</li>
    <li>The determinants of all the elementary matrices are all [[input:ansdropdown]]]</li>
    <li>We conclude that det(A) is not zero if and only if det(R) is not zero.</li>
    <li>Now suppose that A is invertible.
     <ol class="proof-steps">
     <li>Then R =  [[input:ans4]]</li>
     <li>Thus, det(R) = [[input:ans3]] and hence det(A) is not zero.</li>
     </ol></li>
    <li>Conversely, if det(A) is not zero then det(R) is not zero, so R cannot have a zero row.</li>
    <li>Thus R = I and A is invertible as required. </li>
    </ol>]]></text>
        </questiontext>
        <generalfeedback format="moodle_auto_format">
          <text></text>
        </generalfeedback>
        <defaultgrade>0.0000000</defaultgrade>
        <penalty>0.0000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
      </question>
    
    <!-- question: 7545  -->
      <question type="stack">
        <name>
          <text>Algebraic input</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Type in {@ta@}.</p><p>[[input:ans1]] [[validation:ans1]]</p>
    <p>(Note, this assumes single variable variable names)</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text>There are various options for typing in multiplication within STACK.</text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020123000</text>
        </stackversion>
        <questionvariables>
          <text>ta:a*b</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>algebraic</type>
          <tans>ta</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>2</insertstars>
          <syntaxhint></syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords>solve</forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>1</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>1</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>ta</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>a</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7546  -->
      <question type="stack">
        <name>
          <text>Algebraic input (align to the right)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Type in {@ta@}.<br></p><p>[[input:ans1]] [[validation:ans1]]</p>
    <p>(Note, this assumes single variable variable names)</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2019083000</text>
        </stackversion>
        <questionvariables>
          <text>ta:sin(x^2)</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>algebraic</type>
          <tans>ta</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>2</insertstars>
          <syntaxhint></syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords>solve</forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>1</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>1</showvalidation>
          <options>align:right</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>ta</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>a</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>3</testcase>
          <testinput>
            <name>ans1</name>
            <value>sin(x^2</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore></expectedscore>
            <expectedpenalty></expectedpenalty>
            <expectedanswernote>NULL</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7547  -->
      <question type="stack">
        <name>
          <text>Algebraic input (answer box sizes test)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>This question just tests answer boxes of multiple sizes, and styles of input.</p>
    <p>Standard: [[input:ans1]] [[validation:ans1]]</p>
    <p>No variable list: [[input:ans2]] [[validation:ans2]]</p>
    <p>Compact [[input:ans3]] [[validation:ans3]] (all following are compact)</p>
    <p>[[input:ans4]] [[validation:ans4]]</p>
    <p>[[input:ans5]] [[validation:ans5]]</p>
    <p>[[input:ans7]] [[validation:ans7]]</p>
    <p>[[input:ans10]] [[validation:ans10]]</p>
    <p>[[input:ans15]] [[validation:ans15]]</p>
    <p>[[input:ans20]] [[validation:ans20]]</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020041700</text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>algebraic</type>
          <tans>a</tans>
          <boxsize>1</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>a</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>
        <input>
          <name>ans10</name>
          <type>algebraic</type>
          <tans>2</tans>
          <boxsize>10</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>2222222222</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans15</name>
          <type>algebraic</type>
          <tans>2</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>222222222222222</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans2</name>
          <type>algebraic</type>
          <tans>2*x</tans>
          <boxsize>2</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>2*x</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>2</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans20</name>
          <type>algebraic</type>
          <tans>2</tans>
          <boxsize>20</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>12345123451234512345</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans3</name>
          <type>algebraic</type>
          <tans>x^2</tans>
          <boxsize>3</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>x^2</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans4</name>
          <type>algebraic</type>
          <tans>2</tans>
          <boxsize>4</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>2222</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans5</name>
          <type>algebraic</type>
          <tans>2</tans>
          <boxsize>5</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>22222</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans7</name>
          <type>algebraic</type>
          <tans>2</tans>
          <boxsize>7</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint>2222222</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>a</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text><![CDATA[<p>This just takes account of the first answer box!</p>]]></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text><![CDATA[<p>This just takes account of the first answer box!<br></p>]]></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>a</value>
          </testinput>
          <testinput>
            <name>ans10</name>
            <value>2222222222</value>
          </testinput>
          <testinput>
            <name>ans15</name>
            <value>222222222222222</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>22</value>
          </testinput>
          <testinput>
            <name>ans20</name>
            <value>12345123451234512345</value>
          </testinput>
          <testinput>
            <name>ans3</name>
            <value>222</value>
          </testinput>
          <testinput>
            <name>ans4</name>
            <value>2222</value>
          </testinput>
          <testinput>
            <name>ans5</name>
            <value>22222</value>
          </testinput>
          <testinput>
            <name>ans7</name>
            <value>2222222</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7548  -->
      <question type="stack">
        <name>
          <text>Algebraic input (compact)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>What is \(\sum_{k=1}^n k = \) [[validation:ans1]] [[input:ans1]] [[feedback:prt1]]</p>
    <p>(Note, this input has compact validation and PRT.)</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020041700</text>
        </stackversion>
        <questionvariables>
          <text>ta:n*(n+1)/2</text>
        </questionvariables>
        <specificfeedback format="html">
          <text></text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>algebraic</type>
          <tans>ta</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>2</insertstars>
          <syntaxhint></syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords>solve</forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>1</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>2</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>ta</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>a</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7549  -->
      <question type="stack">
        <name>
          <text>Algebraic input (empty answer permitted)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Type in \(\sin(x)\), \(\cos(x)\) and leave one input blank.</p>
    <p>[[input:ans1]] [[validation:ans1]]</p>
    <p>[[input:ans2]] [[validation:ans2]]</p>
    <p>[[input:ans3]] [[validation:ans3]]</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2018080600</text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>algebraic</type>
          <tans>sin(x)</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>allowempty</options>
        </input>
        <input>
          <name>ans2</name>
          <type>algebraic</type>
          <tans>cos(x)</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>allowempty</options>
        </input>
        <input>
          <name>ans3</name>
          <type>algebraic</type>
          <tans>EMPTYANSWER</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>allowempty</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text>sa:setdifference({ans1,ans2,ans3},{EMPTYANSWER})</text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>Sets</answertest>
            <sans>sa</sans>
            <tans>{sin(x),cos(x)}</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>cos(x)</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>sin(x)</value>
          </testinput>
          <testinput>
            <name>ans3</name>
            <value>EMPTYANSWER</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>EMPTYANSWER</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>cos(x)</value>
          </testinput>
          <testinput>
            <name>ans3</name>
            <value>sin(x)</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>3</testcase>
          <testinput>
            <name>ans1</name>
            <value>sin(x)</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>cos(x)</value>
          </testinput>
          <testinput>
            <name>ans3</name>
            <value></value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7550  -->
      <question type="stack">
        <name>
          <text>Algebraic input (with simplification)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Type in {@ta@}</p>
    <p>[[input:ans1]] [[validation:ans1]]</p>
    <p>Hint: use <code>makelist(k^2,k,1,8)</code></p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020041700</text>
        </stackversion>
        <questionvariables>
          <text>ta:makelist(k^2,k,1,8)</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <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>simp</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text>sa:ev(ans1,simp);</text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>sa</sans>
            <tans>ta</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>[1,4,9,16,25,36,49,64]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>makelist(k^2,k,1,8)</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>3</testcase>
          <testinput>
            <name>ans1</name>
            <value>[1,4,9,16,25,36,49]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7551  -->
      <question type="stack">
        <name>
          <text>Checkbox</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2018080600</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[/* Create a list of potential answers. */
    p:sin(2*x);
    ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
    /* The actual correct answer.    */
    tac:diff(p,x)
    /* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
    tao:[null, false, "None of these"];
    ta:append(ta,[tao]);]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>checkbox</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>2</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text><![CDATA[ansmod:apply("and",maplist(lambda([ex],second(ATDiff(ex,diff(p,x),x))),ans1));]]></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ansmod</sans>
            <tans>true</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>[2*cos(2*x)]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>[first(ta[1]),first(ta[3])]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7552  -->
      <question type="stack">
        <name>
          <text>Checkbox (no body LaTeX)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>This question has no LaTeX in the body, to test display of LaTeX only appearing in the input.</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020020301</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[/* Create a list of potential answers. */
    p:sin(2*x);
    ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
    /* The actual correct answer.    */
    tac:diff(p,x)
    tao:[null, true, "Something random"];
    ta:append(ta,[tao]);]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text>{@ta@}</text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>checkbox</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>2</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>[diff(p,x),null]</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <deployedseed>972840190</deployedseed>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>[2*cos(2*x),null]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>[first(ta[1]),first(ta[3])]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7553  -->
      <question type="stack">
        <name>
          <text>Checkbox (plots in options)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p class="noindent">Which of the following functions are invertible?<br></p>  
     [[input:ans1]] [[validation:ans1]]
    <p>(This question is to test auto-generated images appear in MCQ options.)</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text><![CDATA[<p>A function is invertible if and only if it takes each value in its range precisely once.&nbsp; The functions that are not invertible here are not invertible because they take some values more than once.<br></p>]]></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020123000</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[cfn1:x^3;
    cfn2:atan(x);
    cfn3:(1/2)^x;
    cfn4:-x^5;
    wfn1:x^2-1;
    wfn2:(x-1)*x*(x+1);
    wfn3:1/x^2;
    wfn4:cos(x);
    xmax:3;
    ymax:3;
    cplot1:plot(cfn1,[x,-xmax,xmax],[y,-ymax,ymax],[box, false],[yx_ratio, 1],[axes, solid]);
    cplot2:plot(cfn2,[x,-xmax,xmax],[y,-%pi/2,%pi/2],[box, false],[yx_ratio, 1],[axes, solid]);
    cplot3:plot(cfn3,[x,-xmax,xmax],[y,0,ymax],[box, false],[yx_ratio, 1],[axes, solid]);
    cplot4:plot(cfn4,[x,-xmax,xmax],[y,-ymax,ymax],[box, false],[yx_ratio, 1],[axes, solid]);
    wplot1:plot(wfn1,[x,-xmax,xmax],[y,-1,ymax],[box, false],[yx_ratio, 1],[axes, solid]);
    wplot2:plot(wfn2,[x,-xmax,xmax],[y,-ymax,ymax],[box, false],[yx_ratio, 1],[axes, solid]);
    wplot3:plot(wfn3,[x,-xmax,xmax],[y,0,ymax],[box, false],[yx_ratio, 1],[axes, solid]);
    wplot4:plot(wfn4,[x,-xmax,xmax],[y,-1,1],[box, false],[yx_ratio, 1],[axes, solid]);
    corbase:[cplot1,cplot2,cplot3,cplot4];
    wrongbase:[wplot1,wplot2,wplot3,wplot4];
    /* code lifted and adapted from multiselqnalpha */
    sel_cor: maplist(lambda([ex], [ex, true]), rand_selection(corbase, 2));
    sel_incorr: maplist(lambda([ex], [ex, false]), rand_selection(wrongbase, 2));
    opts: random_permutation(append(sel_cor,sel_incorr));
    talab: ev(makelist(sconcat("(",ascii(96+i),")"), i, 1, length(opts)), simp);
    ta1:zip_with(lambda([ex1, ex2], [ex1, ex2[2], sconcat("<b>", ex1, "</b> ", ex2[1])]), talab, opts);
    version: map(first, opts);
    corr1:mcq_correct(ta1);
    incorr1:mcq_incorrect(ta1);]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text>{@f@} {#version#}</text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>none</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>checkbox</type>
          <tans>ta1</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint></syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>1</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>0</mustverify>
          <showvalidation>0</showvalidation>
          <options>LaTeX</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>0</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>setify(ans1)</sans>
            <tans>setify(corr1)</tans>
            <testoptions></testoptions>
            <quiet>1</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty>0.0000000</truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-0-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty>0.1000000</falsepenalty>
            <falsenextnode>1</falsenextnode>
            <falseanswernote>prt1-0-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
          <node>
            <name>1</name>
            <answertest>AlgEquiv</answertest>
            <sans>subsetp(setify(ans1),setify(corr1))</sans>
            <tans>true</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>+</truescoremode>
            <truescore>0.5000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-2-T</trueanswernote>
            <truefeedback format="html">
              <text><![CDATA[<p>You have correctly identified one of the correct answers, but missed \({@setdifference(setify(corr1),setify(ans1))@}\).<br></p>]]></text>
            </truefeedback>
            <falsescoremode>-</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>2</falsenextnode>
            <falseanswernote>prt1-2-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
          <node>
            <name>2</name>
            <answertest>CasEqual</answertest>
            <sans>cardinality(ev(intersection(setify(incorr1),setify(ans1)),simp))</sans>
            <tans>0</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>+</truescoremode>
            <truescore>0.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-3-T</trueanswernote>
            <truefeedback format="html">
              <text><![CDATA[<p><br></p><p>{@setify(ans1)@}<br></p><p>{@(intersection(setify(incorr),setify(ans1)))@}<br></p><p>{@cardinality(intersection(setify(incorr),setify(ans1)))@}</p>]]></text>
            </truefeedback>
            <falsescoremode>-</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-3-F</falseanswernote>
            <falsefeedback format="html">
              <text><![CDATA[<p>You incorrectly selected {@(setdifference(setify(ans1),setify(corr1)))@}<br></p>]]></text>
            </falsefeedback>
          </node>
        </prt>
        <deployedseed>473610050</deployedseed>
        <deployedseed>808241651</deployedseed>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>[incorr1[1]]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-3-F</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>corr1</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-0-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>3</testcase>
          <testinput>
            <name>ans1</name>
            <value>[corr1[1],incorr1[1]]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-3-F</expectedanswernote>
          </expected>
        </qtest>
        <tags>
          <tag><text>multiselqnalpha</text>
    </tag>
        </tags>
      </question>
    
    <!-- question: 7554  -->
      <question type="stack">
        <name>
          <text>Checkbox (Show teacher's answer)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Which method would you use to find \(\int\sin(x)\cos(x)\mathrm{d} x\)?</p>
    <p>[[input:ans1]][[validation:ans1]]</p> 
    <p>(The purpose of this question is to test the "teacher's answer" display is the string shown, not the value returned to Maxima).</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text><![CDATA[<p>Indeed, all four methods can be readily used on this integration problem!</p>]]></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020123000</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[ta1:[A, true, "Integration by parts"];
    ta2:[B, true, "Integration by substitution"];
    ta3:[C, true, "Apply a trig formula to remove product"];
    ta4:[D, true, "Remove trig with complex exponentials, then integrate"];
    ta0:[X, false, "None of the other options"];
    ta:[ta1,ta2,ta3,ta4,ta0];]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>checkbox</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>0</mustverify>
          <showvalidation>0</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>[A,B,C,D]</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>mcq_correct(ta)</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>[first(ta[1]),first(ta[3])]</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7555  -->
      <question type="stack">
        <name>
          <text>Dropdown (shuffle)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020123000</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[/* Create a list of potential answers. */
    p:sin(2*x);
    ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
    /* The actual correct answer.    */
    tac:diff(p,x)
    /* Randomly shuffle the list "ta". */
    ta:random_permutation(ta);
    /* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
    tao:[null, false, "None of these"];
    ta:append(ta,[tao]);]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text>{@ta@}</text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>dropdown</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>2</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>Diff</answertest>
            <sans>ans1</sans>
            <tans>tac</tans>
            <testoptions>x</testoptions>
            <quiet>1</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <deployedseed>1859965311</deployedseed>
        <deployedseed>526091359</deployedseed>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>tac</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>p</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>3</testcase>
          <testinput>
            <name>ans1</name>
            <value>x^2</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore></expectedscore>
            <expectedpenalty></expectedpenalty>
            <expectedanswernote>NULL</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7556  -->
      <question type="stack">
        <name>
          <text>Equiv input test (compact)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Solve {@p@}.</p><p>[[input:ans1]] [[validation:ans1]]</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text><![CDATA[<p>sangwinc<br></p>]]></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020012700</text>
        </stackversion>
        <questionvariables>
          <text>v:x
    p:3*v+7=4
    ta:[p,x=(4-7)/3,x=-1]</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>0</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>equiv</type>
          <tans>ta</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>5</insertstars>
          <syntaxhint>firstline</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>1</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>last(ans1)</sans>
            <tans>last(ta)</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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: 7557  -->
      <question type="stack">
        <name>
          <text>Equiv input test (let, or +-)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Solve {@p@} and let \(a=1\).</p>
    <p>[[input:ans1]] [[validation:ans1]]</p>
    <p>(This tests "let", "or" and "+-".)</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2019121800</text>
        </stackversion>
        <questionvariables>
          <text>tal:[(x-a)^2=4,x-a= #pm#2,x=a#pm#2,x=a+2 nounor x=a-2,stacklet(a,1),x=3 nounor x=-1];
    p:first(tal);</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text>{@tal@}</text>
        </questionnote>
        <questionsimplify>0</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>equiv</type>
          <tans>tal</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>5</insertstars>
          <syntaxhint>firstline</syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>1</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>1</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>EquivFirst</answertest>
            <sans>ans1</sans>
            <tans>tal</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
          <node>
            <name>1</name>
            <answertest>EqualComAss</answertest>
            <sans>last(ans1)</sans>
            <tans>last(tal)</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>+</truescoremode>
            <truescore>0.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-2-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>-</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-2-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>tal</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-2-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7558  -->
      <question type="stack">
        <name>
          <text>Matrix</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Type in {@M@}<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2018080600</text>
        </stackversion>
        <questionvariables>
          <text>M:matrix([1,2],[3,4])</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>matrix</type>
          <tans>M</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>1</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>1</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>M</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>M</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>ev(2*M,simp)</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7559  -->
      <question type="stack">
        <name>
          <text>Matrix (varmatrix)</text>
        </name>
        <questiontext format="moodle_auto_format">
          <text><![CDATA[<p>Find two non-square matrices which solve the following equation.</p>
    <p>[[input:ans1]]  \(\times\) [[input:ans2]] = {@M1@}</p>
    <p> [[validation:ans1]] \(\times\) [[validation:ans2]] \( = ? \) </p>]]></text>
        </questiontext>
        <generalfeedback format="moodle_auto_format">
          <text>Plenty of ways of adding additional information which is not needed by extending the matrices.</text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020051400</text>
        </stackversion>
        <questionvariables>
          <text>M1:matrix([1,0],[0,1]);
    TA1:matrix([1, 0, 0, 0],[0,1,0,0]);
    TA2:matrix([1,0],[0,1],[0,0],[0,0]);</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>symbol</logicsymbol>
        <matrixparens>(</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>varmatrix</type>
          <tans>TA1</tans>
          <boxsize>3</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>3</showvalidation>
          <options></options>
        </input>
        <input>
          <name>ans2</name>
          <type>varmatrix</type>
          <tans>TA2</tans>
          <boxsize>3</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>3</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text>sz1:matrix_size(ans1);
    sz2:matrix_size(ans2);</text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>first(sz1)</sans>
            <tans>second(sz1)</tans>
            <testoptions></testoptions>
            <quiet>1</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text>Your first matrix should not be square!</text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
          <node>
            <name>1</name>
            <answertest>AlgEquiv</answertest>
            <sans>first(sz2)</sans>
            <tans>second(sz2)</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>+</truescoremode>
            <truescore>0.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>2</truenextnode>
            <trueanswernote>prt1-2-T</trueanswernote>
            <truefeedback format="html">
              <text>Your second matrix should not be square!</text>
            </truefeedback>
            <falsescoremode>-</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>2</falsenextnode>
            <falseanswernote>prt1-2-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
          <node>
            <name>2</name>
            <answertest>AlgEquiv</answertest>
            <sans>second(sz1)</sans>
            <tans>first(sz2)</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>+</truescoremode>
            <truescore>0.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>3</truenextnode>
            <trueanswernote>prt1-3-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-3-F</falseanswernote>
            <falsefeedback format="html">
              <text>It is impossible to multiply {@ans1@} with {@ans2@}!</text>
            </falsefeedback>
          </node>
          <node>
            <name>3</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1.ans2</sans>
            <tans>M1</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-4-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>-</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-4-F</falseanswernote>
            <falsefeedback format="html">
              <text>\[ {@ans1@}{@ans2@} = {@ans1.ans2@} \neq {@M1@} \]</text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>TA1</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>TA2</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-4-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>M1</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>M1</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-4-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7560  -->
      <question type="stack">
        <name>
          <text>Matrix-multi</text>
        </name>
        <questiontext format="moodle_auto_format">
          <text><![CDATA[<p>Don't type in the same matrix twice!  Well, this question is to help confirm instant validation works with more than one matrix in a given question.</p>
    <p>[[input:ans1]] \(\neq \) [[input:ans2]] </p>
    <p>[[validation:ans1]] [[validation:ans2]]</p>]]></text>
        </questiontext>
        <generalfeedback format="moodle_auto_format">
          <text>Just about anything random should do here!  I chose \[ {@M1@} \neq {@M2@}.\]</text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020050800</text>
        </stackversion>
        <questionvariables>
          <text>M1:matrix([1,2],[3,4]);
    M2:matrix([a,b],[c,d]);</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>matrix</type>
          <tans>M1</tans>
          <boxsize>3</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>
        <input>
          <name>ans2</name>
          <type>matrix</type>
          <tans>M2</tans>
          <boxsize>3</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>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>ans2</tans>
            <testoptions></testoptions>
            <quiet>1</quiet>
            <truescoremode>=</truescoremode>
            <truescore>0.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>1.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>M1</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>M2</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>M1</value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value>M1</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7561  -->
      <question type="stack">
        <name>
          <text>Notes</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Show your working in this box!<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2018080600</text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>notes</type>
          <tans>true</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>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>true</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>We can add in anything.</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore></expectedscore>
            <expectedpenalty></expectedpenalty>
            <expectedanswernote>NULL</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7562  -->
      <question type="stack">
        <name>
          <text>Numerical input (min sf)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p></p><p>Type in \(\pi\) to at least \(3\) significant figures</p><p>[[input:ans1]] [[validation:ans1]]</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2018080600</text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>numerical</type>
          <tans>significantfigures(pi,5)</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>0</insertstars>
          <syntaxhint></syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>0</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>2</showvalidation>
          <options>minsf:3</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>NumAbsolute</answertest>
            <sans>ans1</sans>
            <tans>pi</tans>
            <testoptions>0.01</testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>3.1</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore></expectedscore>
            <expectedpenalty></expectedpenalty>
            <expectedanswernote>NULL</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>3.1415</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7563  -->
      <question type="stack">
        <name>
          <text>Radio</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2018080600</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[/* Create a list of potential answers. */
    p:sin(2*x);
    ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
    /* The actual correct answer.    */
    tac:diff(p,x)
    /* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
    tao:[null, false, "None of these"];
    ta:append(ta,[tao]);]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>radio</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>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>Diff</answertest>
            <sans>ans1</sans>
            <tans>diff(p,x)</tans>
            <testoptions>x</testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>tac</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7564  -->
      <question type="stack">
        <name>
          <text>Radio (compact)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Differentiate {@p@} with respect to \(x\).</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020041700</text>
        </stackversion>
        <questionvariables>
          <text><![CDATA[/* Create a list of potential answers. */
    p:sin(2*x);
    ta:[[diff(p,x),true],[p,false],[int(p,x),false],[cos(2*x)+c,false]];
    /* The actual correct answer.    */
    tac:diff(p,x)
    /* Add in a "None of these" to the end of the list.  The Maxima value is the atom null. */
    tao:[null, false, "None of these"];
    ta:append(ta,[tao]);]]></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>radio</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>3</showvalidation>
          <options></options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>Diff</answertest>
            <sans>ans1</sans>
            <tans>diff(p,x)</tans>
            <testoptions>x</testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>tac</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7565  -->
      <question type="stack">
        <name>
          <text>Single char</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>Type in \(x\)<br></p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text></text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>singlechar</type>
          <tans>x</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>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>x</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>x</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>2*x</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore></expectedscore>
            <expectedpenalty></expectedpenalty>
            <expectedanswernote>NULL</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7566  -->
      <question type="stack">
        <name>
          <text>String input</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[This input is sent to the CAS:
    <p>[[input:ans1]] [[validation:ans1]]</p>
    This input is not, perhaps it is used to store JSXGraph state? or GeoGebra state?
    <p>[[input:ans2]] [[validation:ans2]]</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2019121800</text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>string</type>
          <tans><![CDATA["Hello world"]]></tans>
          <boxsize>25</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>
        <input>
          <name>ans2</name>
          <type>string</type>
          <tans><![CDATA["Some JSON stuff"]]></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>0</mustverify>
          <showvalidation>0</showvalidation>
          <options>hideanswer</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>StringSloppy</answertest>
            <sans>ans1</sans>
            <tans><![CDATA["Hello world"]]></tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value><![CDATA["Hello world"]]></value>
          </testinput>
          <testinput>
            <name>ans2</name>
            <value></value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>1.0000000</expectedscore>
            <expectedpenalty>0.0000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7567  -->
      <question type="stack">
        <name>
          <text>Textarea test</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[Dummy maths input:&nbsp; \({@ta@}\).<br>[[input:ans1]] [[validation:ans1]]]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2019121800</text>
        </stackversion>
        <questionvariables>
          <text>ta:[x=1#pm#a,x=2 nounor x=-2];</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text>vendor/bin/phpunit --group qtype_stack</text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>textarea</type>
          <tans>ta</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>1</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>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>ta</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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: 7568  -->
      <question type="stack">
        <name>
          <text>Textarea test (compact)</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[Dummy maths input:&nbsp; \({@ta@}\).<p>[[input:ans1]] [[validation:ans1]]</p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020012700</text>
        </stackversion>
        <questionvariables>
          <text>ta:[x=1,x=2]</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>textarea</type>
          <tans>ta</tans>
          <boxsize>15</boxsize>
          <strictsyntax>1</strictsyntax>
          <insertstars>1</insertstars>
          <syntaxhint></syntaxhint>
          <syntaxattribute>0</syntaxattribute>
          <forbidwords></forbidwords>
          <allowwords></allowwords>
          <forbidfloat>1</forbidfloat>
          <requirelowestterms>0</requirelowestterms>
          <checkanswertype>0</checkanswertype>
          <mustverify>1</mustverify>
          <showvalidation>3</showvalidation>
          <options>simp</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>ta</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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: 7569  -->
      <question type="stack">
        <name>
          <text>True/false</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>All generalizations are false: [[input:ans1]] [[validation:ans1]]</p><p><br></p>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text></text>
        </stackversion>
        <questionvariables>
          <text></text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text></text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>boolean</type>
          <tans>false</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>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>AlgEquiv</answertest>
            <sans>ans1</sans>
            <tans>false</tans>
            <testoptions></testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>0.5000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text><![CDATA[<p>Who knows!</p>]]></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.5000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text><![CDATA[<p>Who knows!<br></p>]]></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <testinput>
            <name>ans1</name>
            <value>true</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.5000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>false</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.5000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-T</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    <!-- question: 7570  -->
      <question type="stack">
        <name>
          <text>Units</text>
        </name>
        <questiontext format="html">
          <text><![CDATA[<p>What is the force of gravity?</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
        </questiontext>
        <generalfeedback format="html">
          <text></text>
        </generalfeedback>
        <defaultgrade>1.0000000</defaultgrade>
        <penalty>0.1000000</penalty>
        <hidden>0</hidden>
        <idnumber></idnumber>
        <stackversion>
          <text>2020123000</text>
        </stackversion>
        <questionvariables>
          <text>ta:9.81*m*s^-2</text>
        </questionvariables>
        <specificfeedback format="html">
          <text>[[feedback:prt1]]</text>
        </specificfeedback>
        <questionnote>
          <text>This question just calls for factual recall, but with scientific units attached!</text>
        </questionnote>
        <questionsimplify>1</questionsimplify>
        <assumepositive>0</assumepositive>
        <assumereal>0</assumereal>
        <prtcorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:green;"><i class="fa fa-check"></i></span> Correct answer, well done.]]></text>
        </prtcorrect>
        <prtpartiallycorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:orange;"><i class="fa fa-adjust"></i></span> Your answer is partially correct.]]></text>
        </prtpartiallycorrect>
        <prtincorrect format="html">
          <text><![CDATA[<span style="font-size: 1.5em; color:red;"><i class="fa fa-times"></i></span> Incorrect answer.]]></text>
        </prtincorrect>
        <multiplicationsign>dot</multiplicationsign>
        <sqrtsign>1</sqrtsign>
        <complexno>i</complexno>
        <inversetrig>cos-1</inversetrig>
        <logicsymbol>lang</logicsymbol>
        <matrixparens>[</matrixparens>
        <variantsselectionseed></variantsselectionseed>
        <input>
          <name>ans1</name>
          <type>units</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>mindp:2</options>
        </input>
        <prt>
          <name>prt1</name>
          <value>1.0000000</value>
          <autosimplify>1</autosimplify>
          <feedbackstyle>1</feedbackstyle>
          <feedbackvariables>
            <text></text>
          </feedbackvariables>
          <node>
            <name>0</name>
            <answertest>Units</answertest>
            <sans>ans1</sans>
            <tans>ta</tans>
            <testoptions>3</testoptions>
            <quiet>0</quiet>
            <truescoremode>=</truescoremode>
            <truescore>1.0000000</truescore>
            <truepenalty></truepenalty>
            <truenextnode>-1</truenextnode>
            <trueanswernote>prt1-1-T</trueanswernote>
            <truefeedback format="html">
              <text></text>
            </truefeedback>
            <falsescoremode>=</falsescoremode>
            <falsescore>0.0000000</falsescore>
            <falsepenalty></falsepenalty>
            <falsenextnode>-1</falsenextnode>
            <falseanswernote>prt1-1-F</falseanswernote>
            <falsefeedback format="html">
              <text></text>
            </falsefeedback>
          </node>
        </prt>
        <qtest>
          <testcase>1</testcase>
          <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>
        <qtest>
          <testcase>2</testcase>
          <testinput>
            <name>ans1</name>
            <value>9.8*m/s^2</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore></expectedscore>
            <expectedpenalty></expectedpenalty>
            <expectedanswernote>NULL</expectedanswernote>
          </expected>
        </qtest>
        <qtest>
          <testcase>3</testcase>
          <testinput>
            <name>ans1</name>
            <value>9.81*m/s</value>
          </testinput>
          <expected>
            <name>prt1</name>
            <expectedscore>0.0000000</expectedscore>
            <expectedpenalty>0.1000000</expectedpenalty>
            <expectedanswernote>prt1-1-F</expectedanswernote>
          </expected>
        </qtest>
      </question>
    
    </quiz>