error_outline From September 1st 2021, the usage of coding questions will be moved to digital tests.
This means that coding assignments will no longer be supported.
A solution file is needed to create a grading scheme. With the grading scheme, the answer files of students can be reviewed automatically.
Upload your solution file
- Click on your course or use the search bar in the Courses-section.
- Click on your assignment or use the search bar.
- Click Settings in the menu at the top.
- Click Solution in the menu on the left.
- Click Upload file and upload the file (py | m | mat | slx | mdl).
- Click the more_vert-icon and click Edit to edit the name.
- The generator option is deprecated.
- Click the dropdown button Required for students. By default, it is set to Required. This means that the students need to submit a file. Choose Optional when this is not necessary.
Create your grading scheme
- Click Coding assignment in the menu at the top.
- Click New exercise, fill in a title and click Save.
- Click New question and fill in the question description.
- It is optional to fill in a grading description. This is a solution for the reviewers (and for students when published). The grading description can be an extensive elaboration, an image, or a file.
- Click Save and the question is created.
- Click the add-icon in the bar of the question.
- Click the drop-down button Filename and choose the file you want to check an answer of.
- Fill in the number of points.
- Click the more_vert-icon and choose the grading method you want to use and click Save:
- Fill in the syntax you want to review. You can make use of the logical operators from below. Also, examples of syntax-expressions can be seen below.
- Click Save.
- Fill in the function you want to review the output of.
- Click Save.
- Click the drop-down button Variable and choose the variable you want to review.
- Click Save.
- Blocks (deprecated)
- Links (deprecated)
The following logical operators can be used in Ans:
- a && b : a and b need to be on the same line, but the order is not important.
- a $$ b : a and b need to be on the same line and in the given order.
- a @@ b : a and b can be on different lines, but have to be in the given order.
- a || b : a or b.
- (a && b) || (a $$ b) : combinations always have to be in brackets.
- (a) || (a $$ b) : combinations always have to be in brackets.
- a = b * c can be written as:
(a) $$ (=) $$ (b && * && c)
You are able to upload an attachment. These can be used as an attachment for staff or as an attachment for learners. By default, the attachments are hidden from learners, they are only visible to staff. They can be made visible and then learners can see these at the page of the assignment.