He _____ his homework when his mother came home. A. finished B. was finishing C. will finish D. has finished