What is the speed of sound dependent on?

Choose only ONE best answer.

A
The duration of the wave cycle
B
The medium through which it is passing
C
The frequency of the sound wave

B

The medium through which it is passing