The correct answer is D. Bahadur Shah Zafar.
A. Jahandar Shah was the third Mughal emperor, who reigned from 1628 to 1628. He was the son of Shah Jahan and Mumtaz Mahal. Jahandar Shah was not a very capable ruler and was soon overthrown by his brother Shahryar.
B. Muhammad Shah was the fifth Mughal emperor, who reigned from 1719 to 1748. He was the son of Aurangzeb. Muhammad Shah was a weak and indecisive ruler and his reign was marked by political instability and economic decline.
C. Shah Alam-I was the sixth Mughal emperor, who reigned from 1707 to 1712 and again from 1719 to 1748. He was the son of Aurangzeb. Shah Alam-I was a capable ruler but he was unable to prevent the decline of the Mughal Empire.
D. Bahadur Shah Zafar was the last Mughal emperor, who reigned from 1837 to 1857. He was the great-great-grandson of Aurangzeb. Bahadur Shah Zafar was a poet and a calligrapher but he was not a very capable ruler. He was defeated by the British in the Indian Rebellion of 1857 and was exiled to Rangoon, where he died in 1862.