The code editor question can be used when students are required to include code in their answers. The following programming language can be used by students:
- C++
- C#
- Haskell
- HTML
- Java
- Javascript
- LaTeX
- Matlab
- PHP
- Prolog
- Python
- R
- Ruby
- Shell script
- SQL
- Swift
Questions can be created either in a question bank exercise or from within a course assignment. The video below demonstrates creating the questions from the question bank exercise.
Create a code editor question
Create a code editor question
To create a code editor question, follow the steps below.
- Navigate to your question bank or your course assignment.
- Click New exercise, fill in a name and click Create.
- Click New question and select Code editor.
- Formulate the question in the 'Question*' field.
- Fill in the amount of points the question is worth.
- Click the dropdown menu to select the expected programming language for the question.
- Optionally, add a model answer.
- Select the scoring method:
- Automatic (Add on): Grade Python-based questions automatically. Read more here.
- Criteria: Grade by selecting each applicable criterion.
- Rubric: Grade by selecting on criterion per set.
- Slider: Grade by manually entering a score.
- Add the Evaluation criteria. This option is not relevant for the scoring method 'Slider'.
Click on Add criteria to add a criterion. Optionally, click Add group, to add a group. More information can be found here. - Optionally, add learning objectives in the 'Objectives' field.
- Click Create.
Add a grading scheme to a code editor question
Add a grading scheme to a code editor question
All options mentioned below for the grading scheme can also be added or adjusted from the exercise tab when creating a code editor question. However, it is only possible to adjust the grading scheme from the grading scheme tab if the assignment has been taken.
To add or adjust the grading scheme of a code editor question, follow the steps below.
- Click the Grading scheme tab at the top of the assignment or question bank exercise.
- Go to the question for which you want to set the grading scheme.
- Click the -icon.
- Fill in or adjust the amount of points the question is worth.
- Select or switch the scoring method:
- Automatic (Add on): Grade Python-based questions automatically. Read more here.
- Criteria: Grade by selecting each applicable criterion
- Rubric: Grade by selecting on criterion per set.
- Slider: Grade my manually entering a score.
- Add or adjust the Evaluation criteria. This option is not relevant for the scoring method 'Slider' and 'Automatic'.
Click on Add criteria to add a criterion. Optionally, click Add group, to add a group. More information can be found here. - Optionally, add or adjust the learning objectives in the 'Objectives' field.
- Click Update.
Options for a code editor question
Options for a code editor question
For additional options, click the -icon. You will see the following:
-
Bonus
This marks the question as a bonus question, which means that its points are not included in the maximum amount of points achievable for that assignment. If a student answers the question incorrectly, this will not be detracted from the number of points and the mark. However, when awarding points, it is possible to achieve more points that the maximum points achievable for the assignment.
-
Partial Scoring
Students will receive points when their answer is partly correct. For example, if the total number of points they can receive for a question is 2 and their answer is 50% correct, they will still receive 1 point. Without this option, they can only receive 0 or the maximum number of points.
-
Predefined answer
Set a predefined answer which students can keep, edit or delete. This will show up in the answer field. An example is shown in the picture below.
When accessing the code editor after a digital test has been taken, a warning prompt will appear to inform you about the potential risks of modifying the script. While it may still be helpful to correct errors in the grading method, updates that involve variables used in the content of the question are now restricted. If you attempt to modify such variables, a dialogue will notify you that these changes are not allowed to preserve the integrity of the original question content.
Comments
0 comments
Article is closed for comments.