Section 146 of The Indian Evidence Act, 1872

146. Questions lawful in cross-examination.—When a witness is cross-examined, he may, in addition to the questions hereinbefore referred to, be asked any questions which tend—

(1) to test his veracity,
(2) to discover who he is and what is his position in life, or
(3) to shake his credit, by injuring his character, although the answer to such questions might tend directly or indirectly to criminate him or might expose or tend directly or indirectly to expose him to a penalty or forfeiture: 1[Provided that in a prosecution for rape or attempt to commit rape, it shall not be permissible to put questions in the cross-examination of the prosecutrix as to her general immoral character.]

Complete: the-indian-evidence-act-1872