Understand the rule
Two-way prepositions including in, auf, an, unter and neben take Dativ to express location (wo?). The article changes according to the noun's gender.
The distinction is position versus destination, not merely whether the verb involves physical motion.
How to practise: read the examples once, cover the English meanings and try explaining the choice aloud. Next, complete all four questions before opening their answers.
Four German examples with English meanings
Notice the form that changes and the role it plays in each sentence.
Practice: fill in the gaps
Use the dative definite article to express a location (wo?). Try each question before opening the answer. Where another answer is possible, the explanation notes it. These are self-check exercises, not exam scoring.
Question 1. Die Katze sitzt auf ___ Sofa. (das)
Show answer and explanation for question 1
Answer: dem
Static location: neuter Dativ.
Question 2. Das Foto hängt an ___ Wand. (die)
Show answer and explanation for question 2
Answer: der
Static location: feminine Dativ.
Question 3. Wir warten in ___ Zimmer. (das)
Show answer and explanation for question 3
Answer: dem
Static location: neuter Dativ.
Question 4. Die Tasche steht neben ___ Tür. (die)
Show answer and explanation for question 4
Answer: der
Static location: feminine Dativ.
Use it in your own sentence
Describe a picture hanging on the wall.
Try writing your answer before reading the model below. Other natural answers are possible.
One possible answer
Das große Bild hängt an der Wand neben dem Fenster.
Check your wording: This static location answers wo, so an takes dative.
What to practise next
Change the subject or noun in one model sentence. Check the verb form, case and word order before comparing it with the rule.
Try the gaps again on another day without reading the explanation first. If a choice is still unclear, use the linked grammar foundation before moving to another topic.