Skip to main content Skip to navigation

STACK and CodeRunner on MoodleX

This guide describes the STACK and CodeRunner plugins and the MoodleX innovative teaching platform.

Please note that Academic Technology and IT Services cannot provide guidance on the use of STACK or CodeRunner.

What is STACK?

The STACK system is a computer-aided assessment package for mathematics, which provides a question type for the Moodle quiz. STACK concentrates on student-provided answers which are mathematical expressions.

STACK calculations occur on the MoodleX platform itself.

Example of a STACK question type in Moodle Quiz

What is Coderunner?

CodeRunner is a Moodle quiz question type that allows teachers to run a program in order to grade a student's answer. By far the most common use of CodeRunner is in programming courses where students are asked to write program code to some specification and that code is then graded by running it in a series of tests. CodeRunner questions have also been used in other areas of computer science and engineering to grade questions in which many different correct answers are possible and a program must be used to assess correctness.

CodeRunnner quizzes are normally run in adaptive mode, allowing students to 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.

Example of an answered Coderunner question in the Python3 programming language

What is MoodleX?

Because STACK and CodeRunner can increase the demand on Moodle's resources, these specialist question types are hosted on a separate installation of Moodle - MoodleX.

MoodleX will run the programming code or evaluate the expression itself in a sandbox, compare the output to the correct answer, and mark the question accordingly.

MoodleX is not to be used instead of Warwick's main Moodle site but is intended to complement it. Students will access their course materials as usual on main Moodle but their spaces may contain links to quizzes in MoodleX. Many students may be unaware that they have been re-directed.

  • There is no data integration between SITS and MoodleX. All spaces are created manually and enrolments are either manual or auto-enrolment.
  • Spaces in MoodleX are not included in the Academic Year Rollover process.

How to get access to MoodleX

You can log in to MoodleX at

How to request a MoodleX space

Department super users can request a MoodleX space that corresponds to a space on the main Moodle site via Moodle-Admin.

  1. Log in at
  2. Click Courses.
  3. Under the relevant department, click View courses.
  4. Search for the relevant course and click View details.
  5. Scroll down to MoodleX settings and click Edit MoodleX settings.
  6. Select Create a course from the drop-down menu.
  7. Click Save.

If you do not have access to Moodle-Admin or if you require a standalone space on MoodleX, please contact your departmental super user or email for assistance.

How to get help with STACK and/or CodeRunner

Academic Technology does not provide support in the use of STACK or CodeRunner and cannot advise or diagnose issues with question content or behaviour. The links below are to documentation provided by the developers of the respective plugins.

If either of the question types are not working as expected after following the guidance above, or if there is an issue with the MoodleX platform itself, please email the Help Desk via

How to provide students access to a quiz in MoodleX

  1. Enable auto-enrolment in your MoodleX space.
  2. Copy the URL of the MoodleX space or quiz that you want to share with your students.
  3. Add a URL resource using the link from step 2 into the main Moodle module space.

How to import quiz grades from MoodleX to Moodle

Although the quizzes are administered in a separate Moodle site, you may want to keep a record of students' results in your main Moodle module space. The quiz grades can be exported from MoodleX and imported into Moodle.

Step 1: Export grades from MoodleX

  1. Navigate to the MoodleX space.
  2. From the navigation drawer click on Grades .
  3. Click Export from the top row of tabs, and Excel spreadsheet from the second row of tabs.
  4. Ensure the Gradebook items you would like to export are ticked. Untick any you do not want to export.
  5. No changes are required under Export format options but can be changed according to your preference.
  6. The file will be downloaded as a Microsoft Excel Worksheet (.xlsx).
  7. Open the file in Excel and save it as .csv format.

Step 2: Import grades to Moodle

  1. Navigate to the Moodle space.
  2. From the navigation drawer click on Grades.
  3. Click on the Import tab.
  4. Attach the .csv file containing the grades.
  5. Keep all the default settings/fields below.
  6. Click Upload grades.
  7. Under Identify user by:
    • For Map from, select Email address.
    • For Map to, select Email address.
  8. Under Grade item mappings, ignore the first few dropdown menus which contain the users' profile fields. For each quiz dropdown list, select the name of the existing grade item (column) where the grades should be uploaded, or choose New grade item to add one.
  9. Click Upload grades.
  10. Check that all grades have been imported correctly.
If the following message displays "This import included the following grades for users not currently enrolled in this course: ..." it is likely that there are users who accessed and received grades in the MoodleX space but who are not enrolled in the Moodle space.
The information on this page relates to Moodle and was last updated July 2022.


Filter by tool, task or content