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.
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 make ablution without answering the call of nature after waking up?
Washing front and back openings (Istinjaa`) is not a condition for the validity of ablution because it is done to remove Najaasah (impurity), thus if there is no Najaasah, there is no need for that, and then it is permissible to make ablution without answering the call of nature. However, prayer is invalidated if there is Najaasah on the anus ,or the front opening, so it (Najaasah) must be removed for the prayer to become valid, and not the ablution.
Should a person feel pleased, or have a virtuous vision after offering Istikhara (guidance prayer) in order to do what he/she had offered it for?
The result of the Istikhaarah is not necessarily that a person sees something (in his dream), or feels pleased, but the most important result of the Istikhaarah is whether a person is enabled to do a given matter or not.