The correct answer is A. The girl left the light on upstairs. An adverb modifies a adjective, verb, or adverb. In this sentence, the action takes place upstairs. Options B and C use adverb of time while Option D uses the degree of the adjective "nice".