The correct options are
B Mahmud defeated Shahi kingdom in 1001.
C Mahmud attacked Kanauj and Mathura in 1018.
D In Mahmud's last campaign, he sacked Somanath's temple.
Mahmud extended rule over Punjab by defeating Jayapala's successor, Anandapala at Waihind in 1008. He defeated Shahi kingdom ruled by Jayapala in 1001. Mahmud attacked Kanauj and Mathura in 1018. In his last campaign, he sacked Somanath's temple.