Is it permissible for the doctor to uncover the hair of a female patient out of necessity?
It is only permissible for him to do so when there is no female doctor, and he should examine the patient in the presence of one of her Mahrams (unmarriageable kin).
Does wiping over one's socks during ablution permissible?
If the socks were thick, then wiping over them during ablution is permissible so long as wiping conditions are observed. And Allah Knows Best.
Is it permissible to offer Tahajjud prayer after Witr prayer?
It is permissible to offer voluntary prayer after Witr (An odd number prayer performed between Isha and Fajr) prayer. However, it is desirable that the night prayer be ended with Witr. Therefore, it is desirable for one, who thought that he was most probably going to wake up at night in order to offer Tahajjud, to offer Witr after it, but one, who fears that he might not wake up, should offer Witr before going to bed.
Is it permissible to swear by (Allah "The Living")?
Yes, it is permissible because "The Living" is one of Allah`s Attributes.