单项选择题

If Peter had given up hhis part-time job, he()the final exam.

A.mightpass
B.might have passed
C.haspassed
D.had passed