The correct option is A sound will be louder, but pitch will not be different.
Any sound wave pitch depends on the frequency of the wave and frequency depends on the source. When the mechanical piano is struck harder the second time, we find the sound will be louder, but pitch remains the same because the frequency has not changed. The pitch depends on the frequency of the particular key which is being hit and hence there would not be change in the pitch of sound. Loudness depends on amplitude which will be more if the key is struck harder.
Hence, option (a) correct.