The correct answer is D. Bats generate ultrasonic sound waves.

Bats use echolocation to navigate and find food in the dark. They emit high-pitched sounds that bounce off objects and return to the bat, allowing them to create a mental map of their surroundings. This is how bats are able to fly safely and find food in complete darkness.

Option A is incorrect because bats cannot see in the dark. They have very poor eyesight and rely on echolocation to navigate.

Option B is incorrect because bats have strong legs and are not likely to be attacked by predators. In fact, bats are very good at avoiding predators.

Option C is incorrect because bats do not generate flashes of light. They use echolocation to navigate and find food.