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 fish. B has a cat. C does not have a bird. What pet does D have?

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