how to create a num question for Moodle with R/exams with partially correct answers

Viewed 290

I want to use R/exams to create randomised Moodle questions. When I create - by hand - a num question in Moodle, I can add partially correct answers, for typical small mistakes, that I grade with 50%. I could not find something like that in R/exams. I can provide some XML of such a Moodle question if that is of any help.

1 Answers

For Moodle you can use the verbatim exercise type (instead of num or schoice etc.) in a cloze exercise. Then you can include the desired Moodle processing directly. For a worked example, see http://www.R-exams.org/templates/confint3/.

Instead of using num parts and putting the correct number, say 1.23 into the exsolution, you can use verbatim parts and then put something like :NUMERICAL:=1.23:0.1~%50%2.34:0.1#plus feedback text if 1.23 is fully correct and 2.34 is partially correct. See the Moodle documentation for details: https://docs.moodle.org/38/en/Embedded_Answers_(Cloze)_question_type#Syntax_for_numerical_Cloze_questions

Related