The correct answer is: D. no article
The sentence "All books on the top shelf belong to me" is a general statement about all books on the top shelf. It does not specify any particular book or books, so it does not need an article.
The article "a" is used before singular nouns that are not specific. For example, "I saw a book on the table." The article "an" is used before singular nouns that begin with a vowel sound. For example, "I saw an apple on the table." The article "the" is used before singular or plural nouns that are specific. For example, "I saw the book that I was looking for."
In the sentence "All books on the top shelf belong to me," the word "books" is a plural noun. However, it is not a specific noun. It does not refer to any particular book or books. Therefore, it does not need an article.