To know if the cat is alive send "Is the cat alive ?".
If you got an answer, that mean the cat is alive otherwise (you don't have an answer) that mean the cat is dead.
Implementation
In the code, I just do a random between 0.0 and 1.0.
You have an answer if the result higher than 0.5 (the cat is alive).