Breakdown of ¿Dónde está tu mochila? La he dejado en el coche.
el coche
the car
en
in / on / by (means of transport) / about (after pensar)
dónde
where
estar
to be (location/state)
Questions & Answers about ¿Dónde está tu mochila? La he dejado en el coche.
Why does la come before he dejado instead of being attached to the end?
In the present perfect tense, object pronouns like la must always go immediately before the conjugated form of haber (here, he). You cannot put a pronoun between the two verb parts, and you cannot attach it to the end of the past participle (dejado). So, la he dejado is correct, but he dejadola is always wrong.
What does the la refer to in the second sentence?
It refers to tu mochila (your backpack) from the first question. Because mochila is a feminine singular noun, you use the feminine singular direct object pronoun la to mean "it".
Since la is feminine, why isn't the verb form dejada?
When forming perfect tenses with the helping verb haber, the past participle (dejado) never changes its ending to match the gender or number of the object pronoun. It will always end in -o.