Is it obligatory for a wife who has been abandoned for many years to observe the waiting period (iddah) after her husband passes away?
If her husband passes away, the wife is required to observe the waiting period (Iddah), even if he had abandoned her, because she is his wife and inherits from him, so she must observe the iddah after his death. And Allah Knows Best.
Is a wife considered divorced if her husband refused to go to bed with her (for sexual intercourse) for two months?
A wife doesn`t get divorced no matter for how long her husband refuses to have sex with her, and she had better go to court.
Is it permissible for a man to marry up to four wives (polygamy in Islam) for pleasure although he can`t afford that?
It is desirable for the man to have one wife if there was no need for him to have more, if he can't afford marriage forthcoming expenses.
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.