Advertisement
mayankjoin3

m

Mar 29th, 2025
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.91 KB | None | 0 0
  1. #mcq will be mapped. 1...25, their value will be A,B,C,D
  2. ans = {1 : 'A', 2 : 'B', 3 : 'D', 4 : 'B'}
  3.  
  4. start=49284
  5. for i in range(1,25):
  6.     print(f"""<!-- question: {start}  -->
  7.    <question type="multichoice">
  8.        <name>
  9.        <text>Q{i:02}</text>
  10.        </name>
  11.        <questiontext format="html">
  12.        <text><![CDATA[<p><img src="@@PLUGINFILE@@/file.png"></p>]]></text>
  13.        </questiontext>
  14.        <generalfeedback format="html">
  15.        <text></text>
  16.        </generalfeedback>
  17.        <defaultgrade>1.0000000</defaultgrade>
  18.        <penalty>0</penalty>
  19.        <hidden>0</hidden>
  20.        <idnumber></idnumber>
  21.        <single>true</single>
  22.        <shuffleanswers>false</shuffleanswers>
  23.        <answernumbering>abc</answernumbering>
  24.        <showstandardinstruction>0</showstandardinstruction>
  25.        <correctfeedback format="html">
  26.        <text></text>
  27.        </correctfeedback>
  28.        <partiallycorrectfeedback format="html">
  29.        <text></text>
  30.        </partiallycorrectfeedback>
  31.        <incorrectfeedback format="html">
  32.        <text></text>
  33.        </incorrectfeedback>
  34.        <answer fraction="100" format="html">
  35.        <text><![CDATA[<p>Option A</p>]]></text>
  36.        <feedback format="html">
  37.            <text></text>
  38.        </feedback>
  39.        </answer>
  40.        <answer fraction="0" format="html">
  41.        <text><![CDATA[<p>Option B</p>]]></text>
  42.        <feedback format="html">
  43.            <text></text>
  44.        </feedback>
  45.        </answer>
  46.        <answer fraction="0" format="html">
  47.        <text><![CDATA[<p>Option C</p>]]></text>
  48.        <feedback format="html">
  49.            <text></text>
  50.        </feedback>
  51.        </answer>
  52.        <answer fraction="0" format="html">
  53.        <text><![CDATA[<p>Option D</p>]]></text>
  54.        <feedback format="html">
  55.            <text></text>
  56.        </feedback>
  57.        </answer>
  58.    </question>""")
  59.     start+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement