He _____ his homework before he went out to play. A. finished B. has finished C. will finish D. had finished