Auto Correction

Moodle Code Question

A Quiz plugin for Moodle to allow programming questions that will be corrected automatically.

Learning Tools Subproject

Github Repository

qtype_code is a question type that autocorrects source code based on some settings. The question’s creator can select an environment in which the student’s code will be run, as well as environment-specific settings. Feedback can be customized by the grader application, and any programming language is supported.

The environment system is very powerful and robust, being able to support several types of correction methods. Compiling and running can be done inside a docker container, being completely isolated from the host.

This question type also uses Moodle’s logger, creating an entry every time code is executed. The content of the logger can be customized by the environment.

This system can be used as a learning tool, providing students with a controlled environment in which they can develop their programming skills. Being a part of Moodle, code question can be inserted into any course, and created easily by the teacher.

Learning Tools Subprojects