Hello and thank you in advance.
I am trying to create a moodle exam and all seems okay except points for single choice questions. What I would like to have is a maximum of -0.25 for a wrong answer of a single choice question (including true/false), e.g.,
What is 1+1?
a) 2
b) 3
c) 4
should be 0.25 if someones chose b) or c); this should also be the case if there were more options, e.g., d) 5, e) 6, and f) 7.
What I have tried is the following
library("exams")
elearn_exam <- c("11_sc_MCAB.Rnw")
eSChoice <- exams_eval(negative = 0.25)
exams2moodle(elearn_exam,
schoice = list(eval = eSChoice),
Note: 11_sc_MCAB.Rnw is a single choice question with 3 answer possibilities
When I import it into moodle or have a look a t the XML file, it provides not 0.25 but in this case 50
<question type="multichoice">
<name>
<text> Q1 : 11_sc_MCAB </text>
</name>
<questiontext format="html">
<text><![CDATA[
<p>
<p>EN: Question - here is the question?</p>
</p>]]></text>
</questiontext>
<penalty>0</penalty>
<defaultgrade>1</defaultgrade>
<shuffleanswers>false</shuffleanswers>
<single>true</single>
<answernumbering>abc</answernumbering>
<answer fraction="-50" format="html">
<text><![CDATA[<p>
ANSWER A
</p>]]></text>
</answer>
<answer fraction="100" format="html">
<text><![CDATA[<p>
ANSWER B</p>]]></text>
</answer>
<answer fraction="-50" format="html">
<text><![CDATA[<p>
ANSWER C
</p>]]></text>
</answer>
</question>
userfb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.