4.
The answer is: D
Explanation
The correct option is D: Both (a) and (b).
As per section 273 of Cr. P.C., evidence is to be taken in the presence of the accused, or, when his personal attendance is dispensed with, in the presence of his pleader.
This means that the accused has the right to be present when the evidence is recorded by the court, unless he waives this right or the court exempts him from personal appearance. In such cases, his pleader can represent him and cross-examine the witnesses on his behalf. This provision is intended to ensure a fair trial and protect the rights of the accused.