Is it obligatory for a wife who has been abandoned for many years to observe the waiting period (iddah) after her husband passes away?
If her husband passes away, the wife is required to observe the waiting period (Iddah), even if he had abandoned her, because she is his wife and inherits from him, so she must observe the iddah after his death. And Allah Knows Best.
Is a woman`s prayer considered invalid if non-Mahrams (marriageable men) saw her offering it?
A woman`s prayer isn`t invalidated if non-Mahrams saw her offering it, but she had better pray in isolation.
Is it permissible for me to eat from the animal that I slaughtered for Allah to protect my family?
It is permissible to eat from the non-vowed animal sacrifice, and the person is rewarded based on the amount of meat that he had given to the poor. However, there is no evidence in Islamic Sharia indicating that slaughtering an animal protects one`s family, but it is a way for thanking Allah, The Almighty, for his grace.
What is the ruling on determining the sex of the baby whether through killing the female spermatozoa, or any other way in order to have a male?
If it is done through having a certain type of food, taking a certain type of medication, or organizing the time of the marital relation, then it is permissible.