The sentence given in option (d) is erroneous. In that sentence, the syntax for 'prefer- to' is incorrectly used as the preposition 'than' is used in place of 'to'.
The correct sentence is 'She prefers walking in the evening to walking in the morning'.
Other sentences are grammatically correct and meaningful.
Hence, the correct answer is option (d).
Note:
A Preposition is a word placed before a noun or a pronoun or a noun equivalent (pronoun, adverb, gerund, infinitive, adverbial clause, or any clause that can be used as the object of the preposition) and shows a relationship in space or time or a logical relationship between two or more people, places, or things in a sentence.
Examples
I. The teacher scolded the child for being late.
II. We're going to a party.
· The words in bold are called prepositions because they normally take position before (pre) a noun/pronoun or a noun equivalent (pronoun, adverb, gerund, infinitive, adverbial clause, or any clause that can be used as the object of the preposition.
· The noun/pronoun which is used with a preposition is called its Object.