The type of figurative language used is personification.
This is the attribution of human characteristics to to something non-human.
Personification is used when an animate being is used to qualify an inanimate object, and in this example, it is believed that the stars danced.
The correct answer is option C.
Read more about personification here:
https://brainly.com/question/1075938