Are these exceedingly simple programs 10 line programs? Otherwise:
How do you know they compile?
How do you know they work?
How do you know they handle all the edge cases you can throw at them.
If you have a 100% accurate parser and compiler in your head, I am impressed.
Our teachers (and this was 15 years ago) had test-runners which would compile and run our programs to make sure they met the requirements of the homework THEN they looked at the code and marked it for style etc.
Sometimes they provided these test runners to us so we could check them ourselves, sometimes they didn't (this was, naturally, harder).
Obviously such workflow, while being fairer, requires a reliable sandbox of some kind—even though one might argue that in a university such things may be of less importance and that allowing for some degree of hacking is educational and perhaps should even be tacitly encouraged, still you'd want to make sure that when students break your system they can't go Bobby Tables on it or dump everyone's private data on black market.
How do you know they compile?
How do you know they work?
How do you know they handle all the edge cases you can throw at them.
If you have a 100% accurate parser and compiler in your head, I am impressed.
Our teachers (and this was 15 years ago) had test-runners which would compile and run our programs to make sure they met the requirements of the homework THEN they looked at the code and marked it for style etc.
Sometimes they provided these test runners to us so we could check them ourselves, sometimes they didn't (this was, naturally, harder).