Step-by-step explanation:
In the sentence "Maryam finished doing her homework," the word "doing" is functioning as a gerund. Therefore, the correct answer is (D) Gerund.
9.5m questions
12.2m answers