Correct option is D
The Chief Minister is appointed by the Governor of the respective State under Article 164 of the Indian Constitution.
The Governor invites the leader of the majority party in the State Legislative Assembly to form the government and take the oath as Chief Minister.