As per the provisions of clause (b) of Section 313(1) of Cr.P.C., it is binding on the trial court to question an accused person generally on the case, after completion of the evidence of the prosecution witnesses. The only exception is in a summons-case wherein the court has dispensed with the personal presence of the accused, in which case the aforesaid examination of the accused may also be dispensed with.
The aforesaid examination of the accused under Section 313 of Cr.P.C. is required to be conducted directly inside the court. I have not come across any case, nor have I heard about any such case, where such examination was conducted even without the presence of the accused person in the court, such as by filing a written statement. I have not seen any such legal provision also. Of course, Section 284 of the Cr.P.C. provides for dispensing with the attendance of a witness and recording his statement by issuing a commission; however, it appears that this section is not meant to be used for examination of the accused person under Section 313 of Cr.P.C. Therefore, it may not be possible to get the Section 313 Cr.P.C. examination conducted through a written statement without remaining present in the court.
However, an accused has the right to refuse to answer any such questions that are asked to him during his examination under Section ribaldry of Cr.P.C., and Section 313(3) clearly lays down that he cannot be punished if he refuses to answer any such questions. But, any refusal to answer such questions may appropriate be considered adversely (to the extent permissible under law) by the court at the time of evaluation of the evidence while writing the judgment, since it implies that the accused does not have any answer or defence to offer on that issue.