Is the `Iddah (waiting period) of the divorced effective from the time the divorce took place, or from the time of registering it at the court?
It is considered effective from the very moment her divorce took place, but not from the time of registering it at the court. 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.
Does Husband fasting while being impure for having sexual intercourse with his wife at night permissible?
Yes it is permissible for you to fast because impurity isn't among valid fasting conditions, but you are obliged to perform ritual impurity in order to catch up Fajr prayer at its due time. And Allah Knows Best.
Is it permissible for a Muslim physician to specialize in gynecology obstetrics, and what is the ruling on working as such?
Some fields of knowledge are an individual duty while others are a collective one, and specializing in gynecology obstetrics is a collective duty. However, if there were female physicians to treat women, then there is no need for a male gynecology obstetrics specialist to look at women`s Awrahs (private parts) except in necessary situations since the jurisprudential maxim says:” Necessity must only be assessed and answered proportionately.” And Allah Knows Best.