The ruler of Travancore who resisted British expansionism and was defeated in a battle in 1792 was:

Marthanda Varma
Karthika Thirunal
Dharma Raja
Swathi Thirunal

The correct answer is: A) Marthanda Varma.

Marthanda Varma was the ruler of Travancore from 1729 to 1758. He was a powerful and ambitious ruler who sought to expand his kingdom. He was also a skilled military strategist and was able to defeat the Dutch and the English in a number of battles. However, he was eventually defeated by the British in 1792.

Karthika Thirunal was the ruler of Travancore from 1795 to 1805. He was a peace-loving ruler who focused on developing his kingdom. He was also a patron of the arts and literature.

Dharma Raja was the ruler of Travancore from 1758 to 1798. He was a brave and courageous ruler who fought against the British. He was also a skilled diplomat and was able to negotiate a peace treaty with the British.

Swathi Thirunal was the ruler of Travancore from 1829 to 1847. He was a talented musician and composer. He was also a patron of the arts and literature.

Marthanda Varma was the only ruler of Travancore who resisted British expansionism and was defeated in a battle in 1792.