Respuesta :
This is having the same function than an adverb would have here (answer a). Adverbs can specify how something is done, but also why and with what purpose: the last is what is relevant here.
to prepare for the exam, study a little bit each night "to prepare for the exam" is used as an adverb