The Indian Evidence Act, 1872
Chapter 10 Of The Examination of Witnesses
Section 152: Questions intended to insult or annoy
The Court shall forbid any question which appears to it to be intended to insult or annoy, or which, though proper in itself, appears to the Court needlessly offensive in form.