The correct answer is: A. The same in both cases in all respects.
The pitch of a sound is determined by its frequency, which is the number of waves that pass a given point in a given amount of time. The higher the frequency, the higher the pitch. The speed of sound is constant, so the frequency of a sound will not change as the source of the sound moves towards or away from you.
The intensity of a sound is determined by its amplitude, which is the height of the waves. The higher the amplitude, the louder the sound. The intensity of a sound will increase as the source of the sound moves towards you, and decrease as the source of the sound moves away from you.
In the case of a train whistle, the pitch of the whistle will be the same whether the train is arriving or departing. The intensity of the whistle will be higher when the train is arriving, because the train is moving towards you and the sound waves are therefore closer together.