What is the expiation for perjury?
One who commits perjury should repent, seek Allah`s forgiveness and offer an expiation which is: feeding ten indigent persons, or clothing them, or giving a slave his freedom, but if that is beyond his means then, he should fast for three days. Allah, The Almighty, Says in this regard (What means): "Allah will not call you to account for what is futile in your oaths, but He will call you to account for your deliberate oaths: for expiation, feed ten indigent persons, on a scale of the average for the food of your families; or clothe them; or give a slave his freedom. If that is beyond your means, fast for three days. That is the expiation for the oaths ye have sworn. But keep to your oaths. Thus doth Allah make clear to you His signs, that ye may be grateful." [Al-Ma`idah/89].
What is the ruling on determining the sex of the baby whether through killing the female spermatozoa, or any other way in order to have a male?
If it is done through having a certain type of food, taking a certain type of medication, or organizing the time of the marital relation, then it is permissible.
Who is "the poor" entitled to receive Zakah (obligatory charity)?
The poor is the one who has neither money nor a source of living, or has either of them, but it isn`t sufficient such as being in need for a hundred/JDs, and having an income of forty/JDs only.
Is it permissible to pay the Zakah to my grandmother who lives alone in a rented accommodation with bad conditions noting she had three sons.
Zakah cannot be given to ascendants (parents and grandparents). It is obligatory for her sons and grandsons to provide for her, and they would be sinful if they fail to do so. And Allah Knows Best.