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.
What is the ruling of Sharia on woman shaking hands with non-Mahram man?
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 Messenger of Allah (PBUH) said: "It is better to be stabbed in the head than touch a woman to whom one isn`t related." [Transmitted by Al-Tabarani /Al-Mo`jam Al-Kabir, Hadith No.16880]. Accordingly, it is forbidden for men to shake hands with non-Mahram* woman. And Allah The Almighty Knows Best.
* The women/men that you are allowed to marry. It includes all women/men other than mahram (including cousins).
What is the ruling on taking a loan from an interest-based bank (a usurious bank) to buy an apartment for housing, noting that I am renting at a high amount relative to my income, and I am an employee? Also, considering that the conditions of Islamic banks are strict, and I cannot obtain the full amount from them, is it permissible to take a loan to purchase an apartment or not? May Allah reward you.
Usury (interest) is prohibited by Islamic law, and the Messenger of Allah, peace be upon him, cursed the one who consumes usury, the one who pays it, its recorder, and its witnesses. Whoever leaves something for the sake of Allah, Allah will compensate them with something better and greater, and Allah will provide relief after hardship. Needing a place to live does not permit taking a loan with interest. And Allah Knows Best.
Is it permissible for the guardian, or the father of the child to hit the latter in order to teach him/her good manners?
It is permissible for the guardian to hit his/her child for teaching them good manners once they become ten years old provided that it is done mildly, harmlessly and without intimidation. Actually, such punishment is to be employed gradually i.e. after: asking, warning, and scolding. As for the teacher, he isn`t allowed to hit the student unless the latter`s father approves of it, and it is done according to necessity without intimidation, or harm.