Page tree
Skip to end of metadata
Go to start of metadata

CodeRunner questions can be incorporated in any Moodle Quiz. Here are some guidelines and comments for each Quiz setting category when the Quiz includes CodeRunner questions.


Name is obligatory and should be descriptive.

Description is optional. If your quiz involves penalties for incorrect answers, it is good to explain the penalty policy here. It is usually better to leave Display description on course page unchecked so that the course page does not become too cluttered.


Set Open the quiz and Close the quiz as necessary.

Time limit: Set a time limit, for example 60 minutes, if you want the quiz to stay open only for a limited time, when a student starts an attempt. This can be useful for example for online exams.

When time expires: This setting is very important and it determines whether the open quiz attempts are submitted automatically when the quiz closes. Option "Open attempts are submitted automatically" is recommended. Students do not always remember to submit their final answers, so this setting avoids lots of confusion.


Grade category: If you are using the Moodle Gradebook, you can choose the category where this quiz is placed.

Grade to pass: Minimum grade to pass the quiz. The information on passing the quiz is used for Activity completion (see below).

Attempts allowed: How many times the students can attempt the quiz. For CodeRunner, one attempt makes the most sense, because the students then anyway can re-submit their answers to the questions inside the quiz (Adaptive mode, see Question Behavior below).


New page: Choose if all questions are on one page or if they are divided into separate pages. Page breaks can anyway be added or removed later by editing the quiz, so this setting is not very crucial in the beginning.

Navigation method: The recommended option is Free. If you choose Sequential, students cannot return back to a previous page. In this case, you will need to make the rules very clear in the beginning of the quiz!

Question behavior

Shuffle within questions: Does not affect CodeRunner questions. The recommended choice is Yes if you also have other question types in the same quiz.

How questions behave: The recommended setting for the Quiz is Adaptive mode (the questions will include a Check button that the students can use to interact with the questions). Note that CodeRunner questions will always behave as in Adaptive mode, regardless of this Quiz-level setting. So, for the students it is probably clearer if all questions behave as in Adaptive mode.

Each attempt builds on the last: Recommended setting for CodeRunner quizzes is No. but if you allow multiple attemps, you can choose Yes to allow students to continue from their previous attempt. It might be helpful to enable this option if you plan to give extra attempts to students who have for example missed a deadline due to illness or some other personal reason (Quiz Gear icon → User overrides).

Review options

Choose these very carefully! Below is a one suggestion for Review options. Explanations below the figure.

Example of Review options

During the attempt: Here you probably just want to show Whether correct and Marks. If you would like to give Specific feedback based on student responses, you will need to use a Template Grader in the CodeRunner question.

Immediately after the attempt: You may want to enable Overall feedback at this point, if you plan to give Overall feedback based on the grade. If you want to give the right answers to the students already at this point, you can also check Right answer. Note that it might be a better idea to share the full solutions only after the quiz has been closed and all students have answered. General feedback can be used to give a text-based explanation on the solution of a CodeRunner question.

Later, while the quiz is still open: These are typically identical to Immediately after the attempt.

After the quiz is closed: If you plan to give the full solutions to the students, this is usually the best place to enable Right answer (and also General feedback, if you use it to give further explanations).


These are not that important and will not be explained further.

Safe Exam Browser and Extra restrictions on attempts

No comments on these (not recommended). 

Overall feedback

Here you can add overall feedback for the students, based on the grade they have achieved. For example:

Grade boundary: 100%

Feedback: You achieved 100% of the points, excellent work!

Grade boundary: 90%

Feedback: You achieved at least 90% of the points, well done!

Common module settings

Availability: Is the quiz visible for the students.

ID number: Can be used in grading with Moodle Gradebook. Give a short, descriptive name like E1 for the first exercise set.

Group mode: Not relevant for quizzes.

Restrict access

Add access restrictions if you want. Note that quizzes are never accessible to guests.

Activity completion

Set these if you are using Course Completion on your course (recommended). Enabling Course Completion: click the Gear icon on the front page of the course (top rght) and choose Course Completion to set the course completion conditions.


You can add tags (keywords) for the quiz. These show up in searches, but probably are not very widely used at Aalto at the moment.

  • No labels