The correct answer is : holding a rank ( any rank really) in the military (d): the president does not need to be in military.
Actually, B is also not a requirement: one must be a natural born citizen, that is a citizen on birth- but one can be born to American parents abroad. So both b and d are correct, but i am sure that the question meant d as the answer.