Banabhatta was the friend and court poet of which of the following rulers?

Prithviraj Chauhan
Harshavardhana
Anangpala
Hemchandra

Banabhatta was the friend and court poet of Harshavardhana. He was a Sanskrit scholar and poet who wrote several works, including the Harshacharita, a biography of Harshavardhana. He was also a minister in Harshavardhana’s court.

Prithviraj Chauhan was a Rajput king who ruled over the kingdom of Ajmer in the 12th century. He was a great warrior and is considered to be one of the greatest heroes of India.

Anangpala was a king of the Pratihara dynasty who ruled over the kingdom of Kanauj in the 8th century. He was a powerful ruler and is considered to be one of the greatest kings of the Pratihara dynasty.

Hemchandra was a Jain scholar and poet who lived in the 12th century. He wrote several works, including the Dvyashrayakavya, a poem about the life of the Jain saint Mahavira. He was also a minister in the court of the Gujarati king Kumarpala.

The correct answer is B.