Learning to think of the name "Roy g. Biv" to remember the colors of the light spectrum is an example of "Mnemonic".
A mnemonic is an alternate way for learning or recollecting a more extended string of data. It can be an acronym, in which each letter of a word remains for a more drawn out section, a rhyme which helps continue something all together, even a more extended expression in which the main letter of each word in the expression remains for something unique. Colors of Light in the Spectrum is one of the example of mnemonic.