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 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 to make up for the missed fasts of the deceased?
A deceased`s missed fasts should be made up for by his/her guardian. It is also permissible to make up for the missed fasts of a deceased relative, and to pay a ransom in expiation for the latter`s missed fasts, which is feeding a needy person for every missed day. However, the guardian`s permission need to be sought by the non-relatives of the dead to fast on his behalf. And Allah Knows Best.
Is it permissible for the man to go out wearing shorts?
All Perfect Praise is due to Allah, The Lord of The Worlds
It is permissible so long as his Awrah (private part), which is between his navel and knee, is covered. However, the regular wear traditions and modesty are to be observed. And Allah Knows Best