The correct answer is D. no article.

Swimming is a general noun, which means it does not refer to a specific swimming activity or place. Therefore, it does not need an article.

A and an are indefinite articles. They are used to refer to general or unspecified nouns. For example, "I saw a bird." In this sentence, the speaker is not referring to a specific bird, but rather any bird.

The is a definite article. It is used to refer to specific or particular nouns. For example, "I saw the bird." In this sentence, the speaker is referring to a specific bird that they have seen before.

In the sentence "Swimming is a useful exercise," the word "swimming" is a general noun. It does not refer to a specific swimming activity or place. Therefore, it does not need an article.