What is the ruling on the ablution of one who washes his arms from the wrist to the elbows?
In the school of Imam al-Shafi'i (may Allah have mercy on him), washing the arms (hands) is achieved by washing the arms completely, from the fingertips to the elbows. Washing only the palms at the beginning is insufficient, as washing them at the beginning is a Sunnah, but after washing the face, it becomes obligatory (fard). The person performing ablution must wash his palms along with the arms after washing the face. If he does not wash his palms, his ablution is invalid and not correct. And Allah the Almighty knows best.
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.
Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
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.