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

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