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 bird. Who has the cat?

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