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 it permissible for a young man and a young woman to enter into a covenant as a married couple without having a true seclusion (Khalwah) until their marriage contract is officially concluded?
The relation which isn`t based on a marriage contract is forbidden, and entering into a covenant as a married couple is unaccounted for and is from the evil suggestions of the devil.
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.
What is the expiation for being forced to give a false testimony in order to achieve reform?
Achieving reform is done by following the way of Allah through giving back rights to whom they belong. Therefore, repenting to Allah from false testimony is only achieved by abrogating it, and the person in question should expiate for that oath if he had taken it, so that Allah may forgive him.