Introduction
Moodle has a plugin called “CodeRunner” that allows you to create a programming type questions for a quiz or exam. We have over 5,000 code-runner questions already developed, which you can have access to.
Links
Homepage- http://coderunner.org.nz/
Moodle Plugin Page- https://moodle.org/plugins/qtype_coderunner