Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Is it permissible to offer Salah (prayer) on behalf of the sick who is on his/her death bed, and is incapable of offering it?
It`s impermissible to offer Salah on behalf of the sick, or the dead.
Is it permissible for a teacher to have one of the school meals originally allocated to students considering that there is plenty of them and they may spoil?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
The Ministry of Education has the final say in this regard because it isn`t allowed to take from public funds save with the permission of the body in charge of spending from it. In fact, we have sent a letter to the Ministry concerning this issue and we are waiting for an answer. However, to prevent spoilage of the meals, they can be sold and the price kept in favor of the students or distributed amongst the students themselves. And Allah The Almighty Knows Best.
Is a Muslim is Permitted to Pray Wearing Shoes?
All perfect praise be to Allah The Lord of The Worlds, and may His peace and blessings be upon our Prophet Muhammad and upon all of his family and companions There is no harm for a Muslim to pray wearing shoes or slippers so long as they are pure, since a man asked Anas Ibn Malik: "Did the Prophet (PBUH) use to offer the prayers with his shoes on?" He said: "Yes." Moreover, Ibn Rajab (May Allah have mercy on his soul) said: "Performing prayer wearing slippers/shoes is permissible according the majority of the Muslim scholars." [Fatih Al-Bary,vol.2/pp.274]. And Allah Knows Best.