According to the article "Fearless in Fur, Fins, and Feathers: Animals in the Armed Forces," dolphins were used in the military for various purposes, including identifying underwater mines, warning of enemy submarines, and attacking enemy frogmen. Therefore, the correct answer would be:
d. all of the above.