In order to determine the distance and speed of moving objects, radar uses ________.

A. Sound waves

B. Radio waves

C. Ocean waves

D. Electromagnetic waves