An example of CodeRunner question type
Overview:
This guide will show you how to create a CodeRunner question type.
What to know:
CodeRunner allows students to submit code as answers to various programming questions in different languages. Typically, it works in Core's adaptive quiz mode, where students enter their code for each question and receive immediate feedback on their test results. They can then make corrections and resubmit their code, usually with a minor penalty.
In your module area/course, click the link of the Quiz activity where you want to create a new CodeRunner question.
Note: If an appropriate Quiz activity doesn’t exist in your module area/course, please see Add a quiz for details of how to create one.
Choose a 'Question type' according to your requirement.
Then, you can find more details about the question type you choose in the 'Question type details' area.
Input Test cases.
You can set the Test case as an example to provide students with a reference.
Optional settings:
Answer box: set the number of rows to allocate for the answer box.
Display > Hide: allows for additional validation of student answers, preventing them from using alternative methods to arrive at the correct output and ensuring they provide the intended solution.
Article Number: 416
Author: Mon, Jul 7, 2025
Last Updated: Tue, Jul 8, 2025
Author: Chenhui Li
Online URL: https://knowledgebase.xjtlu.edu.cn/article/coderunner-question-type-416.html