Which one of the following statements is correct ? The velocity of sou

Which one of the following statements is correct ? The velocity of sound :

does not depend upon the nature of media
is maximum in gases and minimum in liquids
is maximum in solids and minimum in liquids
is maximum in solids and minimum in gases
This question was previously asked in
UPSC CDS-1 – 2016
The velocity of sound depends on the properties of the medium through which it travels, particularly its elasticity and density. Sound travels fastest in solids because the particles are closely packed and interactions are strong, allowing vibrations to propagate quickly. It travels slower in liquids and slowest in gases, where particles are farther apart and interactions are weaker. Thus, the velocity of sound is maximum in solids and minimum in gases.
Sound travels fastest in solids, slower in liquids, and slowest in gases.
Factors like temperature also affect the speed of sound within a given medium. For example, the speed of sound in air increases with temperature. However, the general ranking of speeds in solids, liquids, and gases holds true under typical conditions.