Looking for a short story probably anthologized in a golden age collection about space cadets that are under the impression they have to figure out who in their class is the secret android (and maybe kill him). They end up picking the valedictorian / smartest in the class for obvious reasons.
I think that it might then be revealed that this is a hoax played upon the students by the instructors.