I'm not sure what you prefer teacher or lecturer.
I am wondering when somebody hands in there programming homework, do you just mark it to see if it is correct. Do you ask them questions about why they did something a certain way, or what something does to make sure they didn't cheat?
If somebody has programming homework in school and has no intention of ever becoming a programmer and is not at all interested in learning it I could see why they would cheat. I'm not saying it is right, I am just saying I could see why. But I don't get why somebody studying computer science or programming in university or college would try to cheat.
I mean surely if they don't understand the basics they are going to have more problems later on.