He studied diligently for the exam, ______ he still failed.
Correct: B
The two independent clauses ("He studied diligently for the exam" and "he still failed") express a contrast or an unexpected outcome. "Yet" is the coordinating conjunction used to show such a contrast. "So" indicates result, "for" indicates reason, and "or" indicates choice.