The correct option is B It attracts them to people.
Option B: It attracts them to people.
According to the lines, "Sometimes people suggest that when one sees a shark approaching they
should beat the water with their hands or cry out loud. But such
behaviours produce almost opposite effects and should not be heeded.", 'crying out out' produces the opposite effect. The 'opposite effects' imply that instead of repelling the sharks away, the person making the noise attracts them even more.
It's also mentioned in a later line: "People who have studied shark behaviour for years say that a diver's
best protection lies in swimming quietly and slowly away from the
sharks."
This, too, implies that sharks are attracted toward those that make noise.
Hence, option B is correct.
Options A and D: It can disturb their swim.
This line is neither mentioned nor implied by the given passage.
Similarly, 'It affects their hearing' also isn't implied. In fact, making noise attracts them even more. Hence options A and D are incorrect.
Option C: It drives them away.
This is the opposite of the result, as mentioned in this line: "people suggest that when one sees a shark approaching they should beat
the water with their hands or cry out loud. But such behaviours produce
almost opposite effects".
Hence option C is not the correct one.