SCM

Forum: support

Monitor Forum | Start New Thread Start New Thread
RE: moodle cloze with long list of schoices [ Reply ]
By: Achim Zeileis on 2025-03-23 12:44
[forum:50065]
Just as a follow-up: If you install the latest development version of the package here from R-Forge, then setting rule="none" should not be necessary anymore. The default for schoice questions and schoice elements in cloze questions is not to _not_ penalize incorrect answers.

RE: moodle cloze with long list of schoices [ Reply ]
By: Achim Zeileis on 2025-01-10 16:08
[forum:50048]
OK, good, thanks for the feedback!

RE: moodle cloze with long list of schoices [ Reply ]
By: Błażej Kochański on 2025-01-10 09:33
[forum:50047]
Thank you for your quick response and detailed explanation. The solution seems to work well. In case we encounter any further issues, we will let you know.

RE: moodle cloze with long list of schoices [ Reply ]
By: Achim Zeileis on 2025-01-09 01:39
[forum:50046]
Thanks for the report, the same issue was recently reported for different reasons on StackOverflow:

https://stackoverflow.com/questions/79235737/how-can-i-avoid-negative-penalization-in-choice-questions

What happened is that we changed the default evaluation "rule" for "mchoice" questions as well as "mchoice" elements in "cloze" questions. Unfortunately, the same default rule is now erroneously used for "schoice" elements in "cloze" exercises as well. And it either leads to unintended penalization of incorrect answers (reported on StackOverflow) or an error if there are two many answerlist items (reported by you).

This is a bug and we need to fix this. However, it is easy for you to work around it in the meantime. Just set rule="none" like this:

exams2moodle("clozeschoice.Rmd", rule = "none")

moodle cloze with long list of schoices [ Reply ]
By: Błażej Kochański on 2025-01-08 20:04
[forum:50045]

clozeschoice.Rmd (3) downloads
Hi,

We are using cloze questions with relatively long lists of schoices. In the newer version of the package, we encountered the error 'moodlePercent(frac): Percentage not in list of moodle fractions' for certain lengths of schoices when running exams2moodle.

Exports with older versions of the exams package seem to work well in Moodle.

I am attaching a reproducible example of an Rmd question (clozeschoice.Rmd).

Please advise.

Thank you!

Thanks to:
Vienna University of Economics and Business Powered By FusionForge