Does an internal examination require ghusl?
Ghusl isn't required for making internal examination; however, it invalidates one's fasting. And Allah Knows Best.
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.
What should one who forgot to offer the second Sajda during congregational prayer, and remembered it before the end of the prayer do?
All perfect praise be to Allah, The Lord of The Worlds. Whoever forgets a pillar of prayer while in congregation must follow the lead of the Imam, and after the latter offers Tasleem, he should offer one Rakah, then perform Sujood As-Sahw (prostration of forgetfulness). And Allah Knows Best.
During Ramadan, a man had sexual intercourse with his wife. What is the expiation for that? And is he permitted to pay the expiation?
If a man has intercourse with his wife during the daytime in Ramadan, he must make up for that day and offer expiation. The expiation is fasting for two consecutive months. If he is unable to do so, he must feed sixty needy people. And Allah Knows Best.