What should a praying person who doubts having offered one, or two prostrations in the third Rakah (unit of prayer) do?
Whoever has doubts about their prayer should consider what is less i.e. the above person should offer another Sajda (prostration) and complete his/her prayer, then offer Sujood As-Sahw (prostration of forgetfulness). 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.
Is it permissible for the guardian, or the father of the child to hit the latter in order to teach him/her good manners?
It is permissible for the guardian to hit his/her child for teaching them good manners once they become ten years old provided that it is done mildly, harmlessly and without intimidation. Actually, such punishment is to be employed gradually i.e. after: asking, warning, and scolding. As for the teacher, he isn`t allowed to hit the student unless the latter`s father approves of it, and it is done according to necessity without intimidation, or harm.
A person owns sheep or goats and occasionally feeds them from the grass in other people's orchards without the owners’ permission. Is it permissible to eat the meat of these animals if invited to do so? Is it permissible to purchase from these sheep whose owner feed them from people's orchards without their permission, and can one accept gifts from them, such as meat or milk?
Yes, it is permissible because the one who is accountable is their owner, and the cost of the grass on his accountability. In addition, in order to be on the safe side you should abstain from eating his products, because his sheep case is as if they were fed on impurities. And Allah Knows Best.