<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- question: 21324  -->
  <question type="formulas">
    <name>
      <text>Exemple_URL</text>
    </name>
    <questiontext format="html">
      <text><![CDATA[<p>Variant: {intVariant}</p>
<p>Assume you are using this graph:</p>
<br>
<img style="vertical-align: baseline;" src="{link}" alt="" width="400" height="300">
<br>
<p>Remember you can use online sources to answer this question</p>]]></text>
    </questiontext>
    <generalfeedback format="html">
      <text></text>
    </generalfeedback>
    <defaultgrade>5</defaultgrade>
    <penalty>0</penalty>
    <hidden>0</hidden>
    <idnumber></idnumber>
    <correctfeedback format="html">
      <text><![CDATA[<p>Your answer is correct.</p>]]></text>
    </correctfeedback>
    <partiallycorrectfeedback format="html">
      <text><![CDATA[<p>Your answer is partially correct.</p>]]></text>
    </partiallycorrectfeedback>
    <incorrectfeedback format="html">
      <text><![CDATA[<p>Your answer is incorrect.</p>]]></text>
    </incorrectfeedback>
    <shownumcorrect/>
<varsrandom><text>#Random Variant
intVariant={0:4};</text>
</varsrandom>
<varsglobal><text><![CDATA[#possible links
urlImage=["https://pafnuty.ca/z0media/graphs/normal99.svg",
"https://pafnuty.ca/z0media/graphs/1stmoment0marks.svg",
"https://pafnuty.ca/z0media/graphs/1stmoment0income.svg",
"https://pafnuty.ca/z0media/graphs/1stmoment0quiz.svg"];
link=urlImage[intVariant];

# answers for a)
ans_a1=[2020,1971,1952,1963];
answer_Part1a=ans_a1[intVariant];

# choices for a
cn_0=["CORRRECT0","Potter1","Dancik2","Januska3"];
cn_1=["Escalera0","CORRECT1","Hajduk2","Nixon3"];
cn_2=["Clinton0","Carter1","CORRECT2","Kenneth3"];
cn_3=["Johnson0","Kennedy1","Lincoln2","CORRECT3"];
cn_4=["Mitterand0","Obama1","Bush2","Trump3"];
cn_5=["Ford0","Sarkozy1","Lincoln2","Macron3"];

choices_name=[cn_0[intVariant],cn_1[intVariant],cn_2[intVariant],cn_3[intVariant],
cn_4[intVariant],cn_5[intVariant]];

#choices for Part2 and Part3
ct_0=["Amsterdam0","Association1","Angleterre2","America3"];
ct_1=["Bosnia0","Bretagne1","Bratislava2","Belgique3"];
ct_2=["Cancun0","Counseling1","Comparison2","Cadiz3"];

choices_title=[ct_0[intVariant],ct_1[intVariant],ct_2[intVariant]];

#For Part 2, correct answers:
#Variant0: Cancun0, Variant1: Association1, Variant2: Bratislava2, Variant3: Cadiz3
correctChoice_Part2=[2,0,1,2];
answer_Part2=correctChoice_Part2[intVariant];

correctChoice_Part3=[1,2,0,1];
answer_Part3=correctChoice_Part3[intVariant];

correctNumber_Part4=[50,41,32,23];
answer_Part4=correctNumber_Part4[intVariant];]]></text>
</varsglobal>
<answernumbering><text>abc</text>
</answernumbering>
<answers>
 <partindex>
  <text>0</text>
 </partindex>
 <placeholder>
  <text></text>
 </placeholder>
 <answermark>
  <text>2</text>
 </answermark>
 <answertype>
  <text>10</text>
 </answertype>
 <numbox>
  <text>2</text>
 </numbox>
 <vars1>
  <text></text>
 </vars1>
 <answer>
  <text>[intVariant,answer_Part1a]</text>
 </answer>
 <vars2>
  <text></text>
 </vars2>
 <correctness>
  <text><![CDATA[_relerr < 0.01]]></text>
 </correctness>
 <unitpenalty>
  <text>1</text>
 </unitpenalty>
 <postunit>
  <text></text>
 </postunit>
 <ruleid>
  <text>1</text>
 </ruleid>
 <otherrule>
  <text></text>
 </otherrule>
 <subqtext format="html">
<text><![CDATA[<p>a) Who is the current president? {_0:choices_name:MCE}</p>
<p>b) What year was she elected?</p>]]></text>
 </subqtext>
 <feedback format="html">
<text></text>
 </feedback>
 <correctfeedback format="html">
<text></text>
 </correctfeedback>
 <partiallycorrectfeedback format="html">
<text></text>
 </partiallycorrectfeedback>
 <incorrectfeedback format="html">
<text></text>
 </incorrectfeedback>
</answers>
<answers>
 <partindex>
  <text>1</text>
 </partindex>
 <placeholder>
  <text></text>
 </placeholder>
 <answermark>
  <text>1</text>
 </answermark>
 <answertype>
  <text>0</text>
 </answertype>
 <numbox>
  <text>1</text>
 </numbox>
 <vars1>
  <text></text>
 </vars1>
 <answer>
  <text>answer_Part2</text>
 </answer>
 <vars2>
  <text></text>
 </vars2>
 <correctness>
  <text><![CDATA[_relerr < 0.01]]></text>
 </correctness>
 <unitpenalty>
  <text>1</text>
 </unitpenalty>
 <postunit>
  <text></text>
 </postunit>
 <ruleid>
  <text>1</text>
 </ruleid>
 <otherrule>
  <text></text>
 </otherrule>
 <subqtext format="html">
<text><![CDATA[<p>c) What is the title of the article? {_0:choices_title:MCE}</p>]]></text>
 </subqtext>
 <feedback format="html">
<text></text>
 </feedback>
 <correctfeedback format="html">
<text></text>
 </correctfeedback>
 <partiallycorrectfeedback format="html">
<text></text>
 </partiallycorrectfeedback>
 <incorrectfeedback format="html">
<text></text>
 </incorrectfeedback>
</answers>
<answers>
 <partindex>
  <text>2</text>
 </partindex>
 <placeholder>
  <text></text>
 </placeholder>
 <answermark>
  <text>1</text>
 </answermark>
 <answertype>
  <text>0</text>
 </answertype>
 <numbox>
  <text>1</text>
 </numbox>
 <vars1>
  <text></text>
 </vars1>
 <answer>
  <text>answer_Part3</text>
 </answer>
 <vars2>
  <text></text>
 </vars2>
 <correctness>
  <text><![CDATA[_relerr < 0.01]]></text>
 </correctness>
 <unitpenalty>
  <text>1</text>
 </unitpenalty>
 <postunit>
  <text></text>
 </postunit>
 <ruleid>
  <text>1</text>
 </ruleid>
 <otherrule>
  <text></text>
 </otherrule>
 <subqtext format="html">
<text><![CDATA[<p>d) What is the name of the journal from which this article was taken? {_0:choices_title:MCE}</p>]]></text>
 </subqtext>
 <feedback format="html">
<text></text>
 </feedback>
 <correctfeedback format="html">
<text></text>
 </correctfeedback>
 <partiallycorrectfeedback format="html">
<text></text>
 </partiallycorrectfeedback>
 <incorrectfeedback format="html">
<text></text>
 </incorrectfeedback>
</answers>
<answers>
 <partindex>
  <text>3</text>
 </partindex>
 <placeholder>
  <text></text>
 </placeholder>
 <answermark>
  <text>1</text>
 </answermark>
 <answertype>
  <text>0</text>
 </answertype>
 <numbox>
  <text>1</text>
 </numbox>
 <vars1>
  <text></text>
 </vars1>
 <answer>
  <text>answer_Part4</text>
 </answer>
 <vars2>
  <text></text>
 </vars2>
 <correctness>
  <text><![CDATA[_relerr < 0.01]]></text>
 </correctness>
 <unitpenalty>
  <text>1</text>
 </unitpenalty>
 <postunit>
  <text></text>
 </postunit>
 <ruleid>
  <text>1</text>
 </ruleid>
 <otherrule>
  <text></text>
 </otherrule>
 <subqtext format="html">
<text><![CDATA[<p>e) What is the volume number? {_0}</p>]]></text>
 </subqtext>
 <feedback format="html">
<text></text>
 </feedback>
 <correctfeedback format="html">
<text></text>
 </correctfeedback>
 <partiallycorrectfeedback format="html">
<text></text>
 </partiallycorrectfeedback>
 <incorrectfeedback format="html">
<text></text>
 </incorrectfeedback>
</answers>
    <hint format="html">
      <text><![CDATA[<p>Go back to lab 4 if you forgot some of this stuff! You can also try pressing the cite option.</p>]]></text>
      <clearwrong/>
    </hint>
    <hint format="html">
      <text><![CDATA[<p>Last try!</p>]]></text>
      <clearwrong/>
    </hint>
  </question>

</quiz>