IF SHE HADN’T WORKED HARD SHE WOULDN’T HAVE DONE WELL / WOULD HAVE...

6. If she hadn’t worked hard she wouldn’t have done well / would have done badly / would have failed to do well in the exam.