How is the underlined pronoun used in the sentence?

A while ago, he gave (me) a rookie basketball card as a birthday gift.

A.
subject

B.
direct object

C.
object of preposition

D.
indirect object



Answer :

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.
D. indirect object
It's like saying he gave the book to me
if you can add the word to (and it makes sense), it's an indirect object