If only I ____ to my teacher’s advice before the exam last month!
Correct answer D. had listened
Explanation
"If only" about a past regret is followed by the past perfect, since the event happened before now and cannot be changed.
Answer checked How we write and check questions
Discussion