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

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