lightbulb_outline This question type can be used in a digital test only.
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
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 Save.
- Click New question and select Code editor.
- Formulate the question in the question content field.
- Fill in the number of points the question is worth.
- Click the dropdown menu to select the expected programming language for the question.
- Click the more_vert-icon for more options.
- Click Save.
Options for a code editor question
For additional options, click the more_horiz-icon and click Edit. Then click on the more_vert-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.
Add a grading scheme to a code editor question
To add a grading scheme to 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 in which you want to set the grading scheme.
- Click the more_horiz-icon and click Edit.
- Click the dropdown menu Grading type* and choose your method.
- Click the more_vert-icon for more grading options.
- Click Save.
*Read more about Grading types here.
If the "Automatically grade code" add-on is enabled, you can select "Use automated testing" as the grading type. This allows Python-based code editor questions to be automatically tested and graded. Read more about this here.
Options for grading
-
Model answer
A solution for the reviewers (and for participants when published). The model answer can be an extensive elaboration, an image, or a file.
-
Start with zero points (For the points per criterion grading type only)
If this option is enabled the marking of this question will always start at zero points and the points will be added up when selecting the criteria. When this option is disabled, the marking will start with the maximum amount of points that can be awarded for this question and selecting the criteria will be subtracted from this maximum. This means that the criteria should be added as minus points of the total amount. The reviewer can then select the criteria if the student did not meet this with their answer, so it can be detracted from the total amount of points.
error_outline 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.