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
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 for a woman to visit the doctor while in her `Iddah (waiting period)?
It is permissible for her to do that during day time, but it is impermissible for her to leave her house at night except for a sound reason. And Allah Knows Best.
What is the ruling when the monthly period when exceeding (15) days?
The maximum duration of menstruation is 15 days. If it exceeds this, it is considered irregular bleeding (Istihada). In this case, one must perform ghusl (Ritual bath) after menstruation, pray, and make wudu for each prayer after its time begins. She should return to her previous menstrual habit regarding duration and timing. For example, if her period used to be from the 20th to the 27th of each month, this is considered her menstruation period. Anything before or after this is Istihada, during which she only leaves prayer and fasting for the habitual menstrual days, then performs ghusl and resumes praying.