(3)Such person shall be bound to answer truly such questions as may be put to him by the Court, and, if so ordered, to produce and bring in such paper or writing, and shall be subject to the like punishment under the Indian Penal Code, 1860 (45 of 1860), in case of default in not attending or in not answering such questions or not bringing in such paper or writing, as he would have been subject to in case he had been a party to a suit and had made such default.