Change in behaviour for "You must complete or edit the preloaded answer."

Change in behaviour for "You must complete or edit the preloaded answer."

von Michael Fairbank -
Anzahl Antworten: 1

I've just noticed since our university's recent Moodle (and coderunner) upgrade, now if a student does not make any changes to the code given in the preload box, then they can't run that preloaded code.  Is this change due to an upgrade in coderunner, or should I look elsewhere for the cause?

I actually liked the old behaviour, which allowed students to run the preloaded code without editing it.  This was good for teaching purposes. For example you could say "Here is some starter code.  Run it, and look at what it does.  Then think about how to change that code so that the output changes to what is expected".  So this was a useful pedagogical trick to help students. 

Is there any way I can revert to the old behaviour, or should I just rewrite those questions which employed the above approach?

Thank you again for this super plugin!


Als Antwort auf Michael Fairbank

Re: Change in behaviour for "You must complete or edit the preloaded answer."

von Richard Lobb -
Hi Michael. That change was made two years ago. Oddly, no-one has commented until two days ago!

For an explanation of the rationale and various workarounds, see the discussion in this very recent thread in the Question author's forum. I like Paul's suggestion of using the ScratchpadUI. It's specifically designed to allow students to experiment with code, whereas the Check button is intended for grading code. You don't want to grade code that the student hasn't touched, do you? However, do note that the ScratchpadUI doesn't allow the code to access support files.