Answer: Personification
Step-by-step explanation:
Personification is a form of figurative language that refers to the attribution of human features to non-living objects in order to spark the reader´s imagination and interest in the text.
The sentence provided attributes human features to the flag, the wind, and the paper. To describe the setting and situation, the author grants the flag the ability to wave. The wind becomes capable of purposeful whistling, and the paper is presented as flying by its personal choice.