Three friends - X, Y, and Z - have different pets: a dog, a cat, and a bird. X does not have a cat. Y has a bird. What pet does Z have?

Answer: A. Dog
Since Y has a bird and X does not have a cat, Z must have the dog.