Question types ::: qtype_coderunner
Maintained by Richard Lobb, Tim at Lone Pine Koala SanctuaryTim Hunt
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.

CodeRunner 4.0.2

Moodle 3.8, 3.9, 3.10, 3.11
Released: Saturday, May 22, 2021, 7:44 AM


Version: 4.0.2 May 2021

Authors: Richard Lobb, University of Canterbury, New Zealand. Tim Hunt, The Open University, UK

For the full documentation of this plugin, see here.

NOTE: A few sample quizzes containing example CodeRunner questions are available at There's also a forum there, where you can post CodeRunner questions, such as requests for help if things go wrong, or are looking for ideas on how to write some unusual question type.

Changes since V4.0.1 (March 2021):

  • Added a lines_per_cell parameter to the table UI.
  • Bug fix: template preprocessor runs broke if a student had an apostrophe or space within their first or last names.
  • Bug fix: PHP errors were generated if the template parameters were bad, e.g. if a template parameter preprocessor run failed.
  • Bug fix: the sample answer for multilanguage questions was not being correctly displayed in a quiz review.

Version information

Version build number
Version release name
Stable version
MD5 Sum
Supported software
Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11

Version control information

Version control system (VCS)
VCS repository URL
VCS tag

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit to finish the installation