error_outline The usage of coding questions has been moved to digital tests.
This means that coding assignments are no longer 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 the domain School name in the menu on the left.
- Click on label_importantCourses in the menu at the top.
- Click on your course or use the search bar.
- Click on your assignment of use the search bar.
- Click on settings 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.
Add a grading scheme to a coding assignment
- Click the domain School name in the menu on the left.
- Click on label_importantCourses in the menu at the top.
- Click on your course or use the search bar.
- Click on your assignment of use the search bar.
- Click New exercise, fill in the name and click Save.
- Click New question and fill in the question.
- It is optional to fill in a model answer for grading. This is used to help reviewers grade (and can be displayed to students in the publication). The model answer can be an extensive elaboration, an image, or a file.
- Click Save.
- 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:
- Syntax:
- 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.
- Values:
- Click the drop-down button Variable and choose the variable you want to review.
- Click Save.
- Functions (deprecated)
- Blocks (deprecated)
- Links (deprecated)
- Syntax:
Logical operators
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.
Examples
- (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)
Comments
0 comments
Please sign in to leave a comment.