Regulation 2: Every student shall honestly disclose any help received and sources used
If there are parts of the solution that the student has not arrived at him/herself, the student must inform the examining teacher about this.
In many cases it is only natural to use material produced by someone else. For programming tasks, it may be natural to include ready-to-use examples available in the course literature or provided by the course coordinators. This must be clearly declared, e.g. in the form of comments in the code. When you write reports/academic papers, it is only natural to use a wide variety of sources and these must be disclosed in the form of references and a bibliography (direct quotes must be explicitly specified). Anyone using an idea originating from someone else must give a clear acknowledgement of the originator of the idea. This also applies to ideas communicated orally, such as in discussions with other students.
When you have difficulty with a (programming) task, you may need to ask a supervisor or a colleague for tips or help with troubleshooting. This is permitted, but when the help is of fundamental importance it must be clearly reported in an appropriate manner, such as in the form of comments in the code or in the laboratory report. Anyone seeking help to solve a task must do so with the aim of increasing his/her understanding, and not in order to complete the task as quickly and easily as possible.
Discussions between colleagues are encouraged but after the discussion each individual must then arrive at his/her own solution. A student who has contributed inadequately to the solution, according to the assessment of the examining teacher, has not performed well enough to pass the course component in question.