The literary device the poet use in the line in bold is B.Onomatopoeia. Thus, option "B" is correct.
Just to elaborate a little on the answer, it can be added that in this excerpt from Walt Whitman's poem "Beat! Beat! Drums!," the poet seems to be exhorting the drums and bugles to play as loudly and fiercely as they can, and one can almost visualize them and hear them.
This use of vivid language is called imagery and is meant to appeal to our senses and emotions. Whitman wrote this poem as a call to arms, hence the use of this figurative and expressive language.
Thus, option "B" is correct.
To learn more about Onomatopoeia click here:
https://brainly.com/question/1565750
#SPJ1