Change to simple sentence: He worked hard so that he could pass the exam.
AHe worked hard but failed the exam.
BHe worked hard to pass the exam. ✓
CWorking hard, he failed the exam.
DHe worked hard, yet he could not pass the exam.
Explanation
Option B (He worked hard to pass the exam.) is the correct answer based on the English language rule, meaning, or usage tested by the question.