Quiz setting "each attempt builds on last" for Code Runner

Quiz setting "each attempt builds on last" for Code Runner

by Nils Promer -
Number of replies: 3

Hi everyone,

we are using CodeRunner 2.4.2 to create some quizzes for students so that they can train their programming skills in C.

In quiz settings we want to use the question behaviour „each attempt builds on the last“.

Short explanation about this setting: If multiple attempts are allowed and this setting is enabled, each new quiz attempt will contain the results of the previous attempt. This allows a quiz to be completed over several attempts.

The setting is working fine on all question types except code runner. The codes (answers on QR-questions) of previous attempts are not shown, what would mean that students have to rewrite there codes in each new quiz attempt :-(

Is this a singular problem, maybe caused by our installation or does this setting don't work with Code Runner?

Any ideas/ solutions? Would be great.

Nils

In reply to Nils Promer

Re: Quiz setting "each attempt builds on last" for Code Runner

by Richard Lobb -

Hi Nils

Thanks for reporting the problem. It does appear to be a bug in CodeRunner. I've never tried using that setting before, as the only time I use quizzes with multiple attempts is in drill and practice quizzes where I want students to have to re-do their code.

I'll look into it and hopefully will have a fix in Version 3.1, which should be released within a week.

Richard

In reply to Richard Lobb

Re: Quiz setting "each attempt builds on last" for Code Runner

by Richard Lobb -

Hi Nils

The bug turned out to be in the adaptive_adapted_for_coderunner behaviour. I've pushed a bug fix to github. I've tested it only with the most recent versions of Moodle and CodeRunner. I don't guarantee it works with older versions of both those but I'll be surprised if it doesn't. If you're keen for a bug fix, you could try pulling the latest version of that behaviour. Or you could wait until I release CodeRunner 3.1 as well and update both at the same time. Or just live with what you've got :)

Thanks again for reporting it.

Richard

In reply to Richard Lobb

Re: Quiz setting "each attempt builds on last" for Code Runner

by Nils Promer -

Hi Richard,

Thank you for your quick feedback. Really good!
I will pass the information to our moodle administrator. In any case, it is good to know that there is a solution. Let's look, for which we decide ;-)

Best,

Nils