They are all correct: I could have passed the exam if I had studied harder. I did not study harder. Even in the hypothetical situation of my studying harder, there was no hypothetical certainty of my passing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.