It's not diferent, but you don't seem to know to see where the subject is in passive sentences:
The exam: this is the singular subject, thus in passive form you should use was failed
The brakes: this is plural subject, thus in passive form you should use were slammed