Would you mind telling us the options or the vocabulary you’ve learned?
Most likely D since the noun árbol is masculine and you would use ese in that case.
Ayer mi amigo me sorprendió con una visita.
This sentence is grammatically correct.
The correct translation is: <em>Yesterday my friend surprised me with a visit</em>.
In the sentence there is a correct use of the past in the word "sorprendió" (surprised) that is in accordance with the time "ayer" (yesterday). In addition, it is correctly accentuated the word "sorprendió".