The correct option is D Providing buoyancy
The swim bladder is a gas-filled organ. This organ contributes to the ability of a fish to control its buoyancy which helps to stay at its current water depth without having to waste energy in swimming. The swim bladder is evolutionarily homologous to the lungs. Swim bladders are found in many bony fish, but are not found in cartilaginous fish.