It is a noun and possibly an adjective. A mnemonic (noun form) is a memory aid. While it is redundant, you could refer to something as a mnemonic device. That would be using it as an adjective.
For instance, if you want to remember the notes on the bass clef, remember the sentence "Gold Buttons Dress Fine Actors." The first letters of each word are the music notes for each line.
Another example would be if you were making a speech and needed to remember your outline. One type of mnemonic would be to reduce each point into a single word. Then you take the first letter of each of those and either make them into a sentence using those words, or make those letters into a single word if you can.
The part of speech for "answer" is a noun.
It is an mnemonic, or acronym, for the eight parts of speech: noun, interjection, preposition, pronoun, adjective, verb, adverb, and conjunction.
part of speech
The part of speech for this particular word is a noun.
adverb
what part of speech is work
what part of speech is beneath
The part of speech for "explicit" is an adjective.
The part of speech for "indefinite" is an adjective.
The part of speech for "buried" is a verb.
The part of speech for "rapid" is an adjective.
The part of speech for "twirl" is a verb.