it's a standard homework assignment for courses like operating system design, which typically come well after students have learned to program.
Of course the typical way to pass exams these days seems to be to cheat on your assignments so you get the grade without actually learning anything, causing you to get into trouble like this later (and try the same thing again, getting others to do your work for you).
Sadly some people even manage to get university degrees that way :(
You are absolutely right there. I had a course in my university about Operating Systems, which I passed with 8, (10 is the max) and all my code was cheated. I took it from an older student who had the same course. But, to my defense I will have to say that the code was in C, they wanted us to build an OS that handles parallel procedures, and we also had written exams which I did very good without cheating