Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #mcq will be mapped. 1...25, their value will be A,B,C,D
- ans = {1 : 'A', 2 : 'B', 3 : 'D', 4 : 'B'}
- start=49284
- for i in range(1,25):
- print(f"""<!-- question: {start} -->
- <question type="multichoice">
- <name>
- <text>Q{i:02}</text>
- </name>
- <questiontext format="html">
- <text><![CDATA[<p><img src="@@PLUGINFILE@@/file.png"></p>]]></text>
- </questiontext>
- <generalfeedback format="html">
- <text></text>
- </generalfeedback>
- <defaultgrade>1.0000000</defaultgrade>
- <penalty>0</penalty>
- <hidden>0</hidden>
- <idnumber></idnumber>
- <single>true</single>
- <shuffleanswers>false</shuffleanswers>
- <answernumbering>abc</answernumbering>
- <showstandardinstruction>0</showstandardinstruction>
- <correctfeedback format="html">
- <text></text>
- </correctfeedback>
- <partiallycorrectfeedback format="html">
- <text></text>
- </partiallycorrectfeedback>
- <incorrectfeedback format="html">
- <text></text>
- </incorrectfeedback>
- <answer fraction="100" format="html">
- <text><![CDATA[<p>Option A</p>]]></text>
- <feedback format="html">
- <text></text>
- </feedback>
- </answer>
- <answer fraction="0" format="html">
- <text><![CDATA[<p>Option B</p>]]></text>
- <feedback format="html">
- <text></text>
- </feedback>
- </answer>
- <answer fraction="0" format="html">
- <text><![CDATA[<p>Option C</p>]]></text>
- <feedback format="html">
- <text></text>
- </feedback>
- </answer>
- <answer fraction="0" format="html">
- <text><![CDATA[<p>Option D</p>]]></text>
- <feedback format="html">
- <text></text>
- </feedback>
- </answer>
- </question>""")
- start+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement