The correct option is B 1025 A.D.
Mahmud Ghazni was the ruler of Ghazni. He was the first Turk invader. Between A.D. 1010 and 1025, he attacked only temple towns in Northern India. He attacked India 17 times during the course of 25 years. The most devastating invasion of Mahmud was the attack on the Somnath Temple in Kathiawar in 1025 A.D. It was his 16th invasion.