I don't think putting your student number on an assessment makes all that much difference really. Someone has to go through and put a name to it once they're marked anyway so the teachers could access your number and name quite easily. It's more a matter of morals, what mark is awarded should be...