You are not allowed to mislead during an exam or during assessment of some other type of study performance. In short, you are not allowed to cheat. All forms of cheating are absolutely prohibited and will invariably lead to disciplinary measures.
The one who suspects that you have cheated can report it to the Vice-Chancellor, who either takes a decision in the matter directly, or hands it over to the Disciplinary Board. In this Board, the Vice-Chancellor sits together with student and teacher representatives and a judge, a legally qualified representative. The consequences may be that they dismiss the matter, issue a warning or decide that you should be suspended from your studies for a certain period of time. The decision made by a disciplinary board to suspend or warn you can be appealed to an administrative court. If the disciplinary board decides to dismiss the case, this decision cannot be appealed.
Regulations regarding disciplinary matters can be found in chapter 10 in the Higher Education Ordinance. According to 1 §, disciplinary measures may be taken against students who:
Disciplinary measures may not be taken more than two years after the offence was committed.