Where I'm originally from I'm seen as pretty right wing, then I moved to a very different city and was seen as very left wing. I've noticed while people describe themselves as left or right if they say you're left wing or right wing what they mean is "You're left/right of me", even if you're still closer to them than to average.
I'm also open to the possibility I'm just really argumentative and contrary, and love disagreeing with the views of my friends.
Firstly the submitter didn't say if this was a programming exam, or what it was. It could be a test on memorising the capitals of African countries.
But more importantly is that allowing access to the internet doesn't just allow things like documentation, and other resources I might have in the workplace, but might allow me to ask my friend to email the entire solution, or even send the question to a guy in India and get the solution back for a fee. It's a comprimise between testing some memorisation and in the cases of some students, testing nothing at all.