-
Note: this site is running a pre-release of CodeRunner version 6, in which prototypes are first-class objects managed by a separate plugin, rather than a special sort of question. If you spot any bugs, please email trampgeek@gmail.com. For more info, see the design document.
CodeRunner is a free open-source question-type plug-in for Moodle that can run program code submitted by students in answer to a wide range of programming questions in many different languages. It is intended primarily for use in computer programming courses although it can be used to grade any question for which the answer is text. Experienced users can also present users with questions formatted in HTML with additional JavaScript; almost any sort of question can be accommodated using this facility (see the Html UI).
CodeRunner is normally used in Moodle's adaptive quiz mode; students paste in their code in answer to each programming question and get to see their test-case results immediately. They can then correct their code and resubmit, typically for a small penalty.
For example:

CodeRunner is currently used on over 4500 registered Moodle sites worldwide, as shown in the following chart from the Moodle plugin repository:

-
Demo questions
To see how CodeRunner questions behave, try visiting the Python3 demo page below.
The Python page is recommended to give you a feel for CodeRunner's capabilities, even if you don't understand Python3; the questions could (for the most part) be written in any of the supported Languages (Python2, Python3, C, C++, Java, PHP, JavaScript, Octave).
The other pages shows a few simple C and Java questions, and demonstrate a few other features of CodeRunner such as SQL, the GraphUI and a Python3 'sandpit' that provides students with a question in which they can test out any code, including code that plots a graph using matplotlib.
- Main demo page (python3)
- Some C and Java questions
- Three SQL questions (sqlite3)
- GraphUI examples
- Demo of some use of attachments
- The Ace-gapfiller UI
- The Gapfiller UI
- Parsons Problem Questions
- State Sequence Table (SST) questions
- Python3 sandpit
- Ace-inline filter demo (updated version)
- The Python RoboTurtle Demo
- The Scratchpad UI
-
CodeRunner Authors' Forum
A forum for exchange of question ideas and suggestions, bug-reports or anything else related to CodeRunner. Subscribe yourself to this forum if you wish to receive such news.
-
Documentation
There is lots of in-line documentation while authoring CodeRunner questions - just click the help icons (
).The full documentation, required for any advanced CodeRunner question development, is in this github repository.
CodeRunner
-
Welcome to Moodle CodeRunner!