The correct answer is D. no article.
The sentence "Have you had dinner yet?" is a question about whether or not the listener has eaten dinner. In this case, we are not asking about a specific dinner, but about dinner in general. Therefore, we do not need to use an article.
If we were asking about a specific dinner, such as "Have you had the dinner I made for you?", then we would need to use an article. In this case, we are referring to a specific dinner, so we need to use the definite article "the".
The indefinite articles "a" and "an" are used when we are referring to a general thing or person, but not a specific one. For example, we might say "I want to buy a car" or "I met a man today". In these cases, we are not referring to a specific car or man, but to any car or man.
I hope this explanation is helpful!