A moth knows which side an attacking bat is approaching by:

A. Coding the frequency of the arriving signal in its nervous system
B. Comparing the relative activity of its two ears
C. Using decision algorithms based on bat velocity
D. Sensing the wingbeats of the bat with sensory hairs on its wings