7. An externality occurs when ________.
(A) the quantity demanded of a good exceeds the quantity supplied
(B) the quantity supplied of a good exceeds the quantity demanded
(C) the government regulates production and consumption decisions
(D) an economic activity affects third parties not engaged in the activity