Since this is hackernews: During my undergrad I had a professor that would give us our homeworks as normal. But to hand it in, we had to demo the project. He would tell us what to put into the program, check the outputs to make sure it works. Then ask us to show the code for specific parts to spot check it and ask us how it worked. Its essentially an oral exam, and would be hard to cheat it. It is hard to fight against technology but in person has a way of maintaining a good standard.