CodeRunner icon

CodeRunner

Maintained by Tim Hunt, Richard Lobb
A question type that allows question authors to set programming questions in which the student answer is code in some programming language, which is graded by running it. More generally it can handle any question to which the answer is text that can be graded by a computer program written by the question author.
Price option: Free

Supports Moodle 2.9-5.2 See all versions
Latest release: 1 month ago
Installations: 4170
Downloads (last 90 days): 1317

Frankenstyle name: qtype_coderunner
Question types

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Sadly, no. The lesson module has its own much more limited set of question types. There have been requests for it to use the more general question-question types for many years but no progress as far as I know.
We use quizzes as learning modules, with various question types interleaved with so-called "description" questions, which are actually just information panels. But this doesn't allow you to control the student's path through the content, if that's what you want to do. [As a personal aside, based on over 40 years of teaching programming, I don't think we as teachers know enough about how brains construct abstractions for us to enforce learning paths in this way. Certainly there isn't any one-size-fits-all teaching method for programming.]
One possibility you might wish to consider is use of Open University's embed questions filter (https://moodle.org/plugins/filter_embedquestion). This lets you embed quiz questions within Moodle lesson odules (or anywhere else). But it doesn't let you use them to control or grade a student's progress through the lesson with the questions.
Is it possible to use this question type in the Lesson activity?
I think you must have installed the latest version of the adaptive_adapted_for_coderunner question behaviour but not the latest version of qtype_coderunner, which provides the GIVEUP_NEVER constant. What version number are you seeing for CodeRunner in the "manage question types" page? It needs to be the latest version, v4.1.1 (2021112300). But I'm curious to know how the problem came about. Did you install CodeRunner some time ago and then just upgrade the behaviour and not the question type? If you do a clean install of CodeRunner on Moodle 3.8 you should get the most recent versions of both plugins - if that didn't happen for you I'd like to understand why not.
Hello
I have installed plugin in moodle 3.8. I am getting error as below.
https://ibb.co/FbBJTc0
Can u help me how to fix it.
Appreciated your feedback.
My apologies Roland. When adding the most recent version of CodeRunner to the repository I forgot that it required an updated version (v1.3.9) of "Adaptive adapted for coderunner", which was available on github but which I hadn't loaded into the repository. I've now added it, so you should be good to go. Please let me know if not.
Thanks for reporting.
Hi. We're experiencing an issue when attempting to upgrade from v3.7.9+ to v4.0.1, which is that the upgrade process reports a failure to locate the 'Adaptive adapted for coderunner' question behaviour plugin dependency - when in fact this plugin is installed (v1.3.7) and is working fine with v3.7.9+ of CodeRunner. We've attempted the upgrade process several times both via the UI and command line, but always with the same result. Not sure if this is a bug, but any suggestions on how to resolve this would be very much appreciated.
Please see https://github.com/trampgeek/moodle-qtype_coderunner#supporting-or-implementing-new-languages. If you have further questions, please post them on one of the forums at https://coderunner.org.nz.
Hello, It's a great plugin and so helpful. How can i add other programming languages to run in CodeRunner?? Like ideone has many other programming languages support.
Please see https://github.com/trampgeek/moodle-qtype_coderunner#supporting-or-implementing-new-languages. If you have further questions, please post them on one of the forums at https://coderunner.org.nz.
Can we add another programming language in this plugin like Sphere Engine?
Could you post your question to the question authors' forum on https://coderunner.org.nz, please, detailing the steps required to replicate the problem.
Hello fellow educators,
Can anyone help me fix the CodeRunner Question Type? it does have the drop down choices of programming languages.
it will only display --> Undefined
Thank you in advance!
No, sorry Michael. In fact I'd never even heard of Stata until you posted. You could try a posting to the question authors' forum on coderunner.org.nz. There aren't a lot of permanent subscribers but it does get lots of Google hits so in time someone might answer. To be honest, though, most Moodle/CodeRunner users want software that's free and open source, so I wouldn't expect a lot of enthusiasm. As to whether it's possible it set CodeRunner up to use it: I'd be pretty confident the answer is yes but it would require a high level of CodeRunner expertise, particularly if you want to be able to deal with charts and graphs. You could start by reading how to interface to new languages at https://github.com/trampgeek/moodle-qtype_coderunner#supporting-or-implementing-new-languages.
If you want to get back images, see https://coderunner.org.nz/mod/forum/discuss.php?d=167 (though that doesn't let you grade them - just look at them).
Hello Richard,
Do you know of anybody that has used the Coderunner plugin with Stata or could you tell me whether it is possible to set it up for Stata?
Many thanks
Michael
This time i installed from github as you said instead of from Moodle plugins. It worked!