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.
Should water be put in the deceased`s mouth and nose while washing him/her?
Putting water in the mouth and nose of the deceased while washing him is impermissible.
How are gaps filled during congregational prayer?
A praying person is allowed to take two steps in order to fill the gap in the row ahead. If the distance was long and requires much movement, then it is impermissible for one to move to fill it because much consecutive movement (three movements) during prayer invalidates it.
A man break his fast once during Ramadan and he already have an expiation of fasting for two consecutive months. He fasted for a month and passed away. Is it permissible for his sons to fast the remaining month equally?
Fasting for expiation must be performed consecutively. I advise his children to feed sixty poor people, giving each one half a kilogram of rice or its monetary equivalent. This is because if a living person is unable to fast, they are required to feed sixty poor people, and death constitutes an inability. And Allah The Almighty Knows Best.