Four friends, A, B, C, and D, have different pets: a dog, a cat, a bird, and a fish. A does not have a dog or a bird. B has a cat. C does not have a fish. What pet does D have?

Answer: D. Fish
Since A cannot have a dog or a bird, and B has a cat, A must have the fish. C cannot have a fish, leaving D with the dog.