The Rigveda was composed in Sanskrit. Scholars call this early form Vedic Sanskrit. It was composed about 3500 years ago. It was not written down for centuries. It was recited aloud and learnt by heart, passed from teacher to student. It was written down only much later.
The options test one key difference: language versus script. Sanskrit, Prakrit and Shauraseni are languages. Brahmi is a script, which means a way of writing. A hymn is composed in a language. So only a language can be the answer.
Key Points
The Rigveda is in Vedic Sanskrit, about 3500 years old.
It was first passed on by speaking and memory, not writing.
Sanskrit, Prakrit and Shauraseni are languages.
Brahmi is a script, used for Ashoka's inscriptions.
Why the other options are incorrect
A
Prakrit→Prakrit is the term for the everyday spoken languages of ordinary people. These came in the centuries after the Vedic age. Ashoka's inscriptions and early Buddhist and Jaina texts used Prakrit. But the Rigveda is far older and is in Sanskrit.
C
Brahmi→Brahmi is a script. Most of Ashoka's inscriptions were written in it. James Prinsep deciphered it in 1838. A script is not a language. Also, Brahmi belongs to a much later period than the Rigveda.
D
Shauraseni→Shauraseni is one particular Prakrit dialect of the Mathura–Shurasena region. Later Sanskrit plays used it for the speech of women and common characters. It has no link with Vedic composition.
Remember
Sanskrit, Prakrit, Shauraseni = languages. Brahmi and Kharosthi = scripts. The Vedas are in Sanskrit. Ashoka's edicts are in Prakrit, written in Brahmi.
Sit the whole CTET Paper II September 2014 paper — in the printed order, on the official clock, with every answer explained when you submit.