The person shall be present unless the court believes that his presence is likely to be injurious to him; in this event the court shall appoint a guardian ad litem to represent him throughout the proceeding. The court shall examine the person in open court, or if advisable, shall examine the person out of court.
SDCL 34-20A-74