What is a mnemonic device?

A. a tool used to aid in hearing

B. a tool used to aid in memory

C. a tool used to aid in designing text

D. a tool used to write sentences

I have a feeling it's B. Correct me if I'm wrong.