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

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