How is the infinitive phrase used in the sentence? To prepare for the exam, study a little bit each night.

Aadverb
Bnoun as subject
Cnoun as direct object
Dadjective

Verified Answer :

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