The correct option is B. Coastal cities usually have large bodies of water around them while cities in the middle of continent have land masses surrounding them. One of the unique property of water is its relative high heat specific capacity. It takes a lot of heating before there will be significant change in the temperature of water, thus, cities around water bodies tend to experience more stable temperature. Land masses on the other hand does not absorb heat like water, thus, there is higher rate of climate fluctuation.
The specific heat capacity is very high therefore it does not get heated up easily. Other geographic structures such as land, rocks etc. have low specific heat capacity and gets heated up in a short while. While water maintains its cool temperature. Therefore the Sea breezes blow from ocean/sea towards the land and thereby make its climate moderate.
Therefore, coastal cities experiences moderate climate as compared to that of continental cities.