Using 'Respectively' in a form of a question
In my opinion, this wording is somewhat awkward because of the use of the word 'a'. RAM and ROM are types of memory, but unless it's usage that I've just never seen, one would not say, "RAM is a volatile memory." That sounds like you're talking about a personal recollection to me. The use of 'respectively' is necessary, however, because of the way the answers are patterned. It feels like the question was written by someone whose first language is not English, although that may be a flawed impression. I think, ideally, this would be two separate questions, one about volatile memory, another about non-volatile.