Well, in my opinion, if others want to compare marks that their choice, not yours. If however you don't want to tell them what you got, then you don't have too (though some teachers post up everyone marks for everyone to see).
I always used to compare marks with people at school, because, I...