Questions & Answers about Девочка закрыла калитку и пошла в сад.
Девочка means girl in the sense of a child.
Девушка usually means a young woman or teenage girl.
So if the sentence is about a child, девочка is the natural choice.
In Russian past tense, verbs agree with the subject in gender and number.
The infinitive is закрыть (to close). In the past tense:
- закрыл = he closed
- закрыла = she closed
- закрыло = it closed
- закрыли = they closed
Because девочка is feminine singular, the verb is закрыла.