The sun gives us (light). The word in brackets is a/an:

(A Complement
(B) Direct object
(C) Indirect object
(D) Predicate

Answer: (B) Direct object