If you __ hard, you would not have failed in the exams.

A. have work
B. have worked
C. had work
D. had worked
✅ Answer: D. had worked