Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
How is night prayer offered?
Night prayer is offering voluntary prayer after Maghrib and before Fajr (Dawn). As for Tahajjud, it is offering voluntary prayer at night after waking up voluntarily, and for Allah`s sake as He Says (What means): "And pray in the small watches of the morning: (it would be) an additional prayer (or spiritual profit) for thee: soon will thy Lord raise thee to a Station of Praise and Glory!" [Al-Isra`/79]. Offering Tahajjud is better than offering voluntary prayer before going to bed.
What is the ruling on swearing on the Holy Quran and breaking that oath?
It is impermissible to swear on the Holy Quran in vain, and it is also impermissible to subject it to such an act since breaking the oath after swearing on the Quran entails an expiation.
In the last verse of Surah At-Tin, Allah Says (What means): "Is Allah not the most just of judges?" [At-Tin/8]. Is it permissible for us, while performing congregational prayer, to respond after the Imam recites it by saying: "Indeed, and I am among those who bear witness to that." ?
It is recommended for the worshipper to say 'Indeed' (Bala) silently after reciting or hearing the verse (/What means): "Is Allah not the most just of judges?" [At-Tin/8]. This is part of reflecting on the Quran during its recitation or listening, as Allah Says (What means): "Then do they not reflect upon the Quran, or are there locks upon [their] hearts?" (Muhammad: 24). Doing so helps in achieving humility and focus in prayer. And Allah Knows Best