D
Below is a question with multiple-choice answers. Choose the correct option based on your reasoning.

### Question:
Which of the following has the greatest effect on the speed at which sound travels through a gas?

### Choices:
A. the ability of electrons to travel through a medium
B. the frequency of the wave
C. the amplitude of the wave
D. the proximity of the molecules of the medium

### Answer:
