Which figure of speech is the following line an example of?

The trees groaned and shook their heads in the wind.

simile

personification

metaphor

alliteration

1 answer

The line "The trees groaned and shook their heads in the wind" is an example of personification. This figure of speech attributes human characteristics—such as groaning and shaking their heads—to non-human elements, in this case, the trees.