D indirect object. An indirect object is the answer when you ask to whom about the sentence. In this example to whom did he give? Since the answer is me, me is the indirect pronoun.
A. Purpose
You have to know what and why you are writing before you can make a plan to write.
It would be A.
That hat looks quite good on you.
You would use well to describe an action.
Some examples;
She danced well in the competition.
You speak French very well.
The cake is good.
That sweater looks good on you.
I hope this helped!