What should a mensurating woman, or in state of confinement do if she became ritually pure during the daytime of Ramadhan ?
If she became pure during the daytime of Ramadhaan, is desirable to complete her fasting during that day, and to make up for it along with other missed days due to menstruation. And Allah Knows Best.
Is speaking to a person from the opposite sex forbidden or not?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Talking to a person from the opposite sex is forbidden in Islam because it entails a great deal of evil, which could lead to a graver sin. Moreover, Islam forbids having a friend from the opposite sex. And Allah The Almighty Knows Best.
Is it permissible to make up for missed fast after the beginning of the second half of the month of Sha`ban (the month before Ramadan)?
Yes, it is permissible, but one who had missed fasts should hasten to make up for them. As for the Hadith mentioned in this regard, the prohibition is for offering absolute voluntary fasting. And Allah Knows Best.
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.