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 wearing a cap permissible for boys, or girls?
All Perfect Praise is due to Allah, The Lord of The Worlds.
In principle, anything is permissible sol long as there is no Sharia evidence prohibiting it, thus wearing the cap by boys is permissible as long as it isn`t done in imitation of the disbelievers. Moreover, a Muslim woman should avoid all that which attracts the attention of men because whatever leads to the forbidden is forbidden. And Allah Knows Best.
My father placed shares worth twenty dinars in one of the banks, and their value doubled to become five thousand dinars. When my father passed away, one of the scholars told us that it is permissible for us to take the money. What is the ruling on this money, considering that it comes from a bank and involves interest (Riba)?
Allah The Almighty Said (What means): "And if you repent, then for you is the principal of your wealth. You do not wrong, nor are you wronged." [Al-Baqarah/279]. This is the precautionary ruling regarding what you are asking about. You are entitled to the principal amount, and you should give the excess as charity to the poor and needy. If you are poor, you may take from it. And Allah The Almighty Knows Best.
Is it permissible for the mother to give her children from the Zakah (obligatory charity) of her money?
It is permissible for the mother to give her children from the Zakah of her money if they are Zakah-eligible recipients, and she isn`t obliged to provide for them.