diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 09:55:56 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 09:55:56 +0100 |
commit | 0eb3c569ff1bcd9dc8273ed6b7d8899238c5c13f (patch) | |
tree | 400c91cb836688dd798fa18338480dac8520665b | |
parent | fa7c2989affbef0ea05f749e210e07b55f59dcc2 (diff) |
Add a question sample file in fixtures
-rw-r--r-- | tests/fixtures/qtype_sample_algebra.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/fixtures/qtype_sample_algebra.xml b/tests/fixtures/qtype_sample_algebra.xml new file mode 100644 index 0000000..ec3f81a --- /dev/null +++ b/tests/fixtures/qtype_sample_algebra.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<quiz> +<!-- question: 0 --> + <question type="category"> + <category> + <text>$course$/Default for course1</text> + + </category> + </question> + +<!-- question: 45 --> + <question type="algebra"> + <name> + <text>Derive</text> + </name> + <questiontext format="html"> + <text><![CDATA[<p>What is the derivative of the function \(f(x) = x^2\) ?<br></p>]]></text> + </questiontext> + <generalfeedback format="html"> + <text><![CDATA[<p>Generalfeedback: 2*x is the correct answer.<br></p>]]></text> + </generalfeedback> + <defaultgrade>1.0000000</defaultgrade> + <penalty>0.3333333</penalty> + <hidden>0</hidden> + <compareby>eval</compareby> + <tolerance>0.001</tolerance> + <nchecks>10</nchecks> + <disallow> <text></text> +</disallow> + <allowedfuncs></allowedfuncs> + <answerprefix> <text>f(x) = </text> +</answerprefix> + <answer fraction="100" format="moodle_auto_format"> + <text>2*x</text> + <feedback format="html"> + <text><![CDATA[<p>Correct.<br></p>]]></text> + </feedback> + </answer> + <answer fraction="0" format="moodle_auto_format"> + <text>x</text> + <feedback format="html"> + <text><![CDATA[<p>It seems that you forgot something.<br></p>]]></text> + </feedback> + </answer> +<variable name="x"> + <min>-5</min> + <max>5</max> +</variable> + </question> + +</quiz>
\ No newline at end of file |