Keywords: quiz, question, exam, e-exam, e-assessment, summative, formative, instant feedback
CodeRunner is a Moodle question type that allows students to submit code and for teachers to run a program in order to grade a student's answer.
CodeRunner will be of most benefit to 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 are also relevant for areas of computer science and engineering to grade questions in which a program must be used to assess correctness.
UCL has support for the following common coding languages: Python, Java, C, SQL, PHP. To request a language please contact Digital Education.
CodeRunner questions are an advanced question type. You should always run practice and formative assessments with students prior to any summative assessments to ensure your questions are working properly and that students are familiar with answering CodeRunner questions. |
Think about:
The UCL Connected Learning Baseline suggests the following for Orientation:
|
The Assessment category suggests that you should:
|
CodeRunner is an advanced question type. You should consult with the following two resources before creating any questions.
When you are ready, you can then create a CodeRunner question on UCL Moodle.
You can find further videos and guidance in the Moodle guides and we recommend reading Guidance on Building a Quiz before creating your first quiz on UCL Moodle. |
Within a question bank or quiz:
At the very minimum you will need to complete:
Question type: select the appropriate coding language
Question text: provide students with the question prompt
Answer: provide the correct answer.
Test case: provide test to evaluate the student's response
Expected output: the output expected by the students answer when the test case is run.
Regardless of the behaviour chosen for a quiz, CodeRunner questions always run in an adaptive mode, in which students can click a Check button to see if their code passes the tests defined in the question. If not, students can resubmit, typically for a small penalty. In the typical 'all-or-nothing' mode, all test cases must pass if the submission is to be awarded any marks. The mark for a set of questions in a quiz is then determined primarily by which questions the student is able to solve successfully and then secondarily by how many submissions the student makes on each question. However, it is also possible to configure CodeRunner questions so that the mark is determined by how many of the tests the code successfully passed.
You can change this behaviour under the Marking setting when editing a CodeRunner question.
Click Save changes and continue editing to add more questions.
Students will need to be instructed on how to answer questions correctly. Digital Education recommends having a formative or practice quiz to familiarise students with the process of completing and submitting a quiz attempt.
Further guidance on the CodeRunner Question Type is available on the official documentation page. If you find any inaccurate or missing information you can even update this yourself (it's a communal wiki). If you have a specific question about the tool please contact the Digital Education team. |
Coming soon
-
N/a