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.
Does fasting on behalf of a deceased person permissible?
Fasting on belhaf of a deceased person is permissible, since the Prophet (PBUH) said: "Whoever dies while he still has some fasts to make up (of the days of Ramadan), then his heir (any of them) should fast on his behalf." [Agreed upon]. The previous answer is for making up missed obligatory fasts on behalf of the deceased. But if the fasting on behlaf of the deceased was for performing a voluntary acts of devotion such as fasting....is permissible as adopted by the majority of Muslim scholars and based on the above hadith as they stated "Every good dead intended to be on behalf of the deceased its reward will reach the latter." 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.
In the last verse of Surah At-Tin, Allah Says (What means): "Is Allah not the most just of judges?" [At-Tin/8]. Is it permissible for us, while performing congregational prayer, to respond after the Imam recites it by saying: "Indeed, and I am among those who bear witness to that." ?
It is recommended for the worshipper to say 'Indeed' (Bala) silently after reciting or hearing the verse (/What means): "Is Allah not the most just of judges?" [At-Tin/8]. This is part of reflecting on the Quran during its recitation or listening, as Allah Says (What means): "Then do they not reflect upon the Quran, or are there locks upon [their] hearts?" (Muhammad: 24). Doing so helps in achieving humility and focus in prayer. And Allah Knows Best