Correct option is D
The correct option is (d).
• Explanation:
The preposition 'along' means in a line on or parallel to the length or direction of something. Since houses were built in a long row following the coast, 'along' is the most appropriate choice.
• Correct answer word – along
Example:
Trees were planted along the bank of the river.
Grammatical rule(English):
'Along' indicates movement or position in a line parallel to a feature like a coast, road, or river.
Meanings of other options:
• Between – In the space separating two points or objects
• Beneath – Directly under or at a lower level than
• Under – Below or beneath something
So the correct answer is (d)