The President of India is elected by an electoral college consisting of elected members of both Houses of Parliament (Lok Sabha and Rajya Sabha) and elected members of State Legislative Assemblies (Vidhan Sabhas). Nominated members do not vote. Option B correctly captures this composition.