The airlines can ask whatever they want. I wouldn't draw attention to any exam failures, but disclose them if asked. There are loads of pilots who didn't get first time passes. It really depends on the airline, and how much input the HR department has. When there is a glut of pilots they can afford to be picky. But if you're trying to get your CV through the front door, there's your first mistake.