(1)If a person under the age of twelve years is guilty of any of the offences under sections 150 to 154, the court convicting him may require the father or guardian of such person to execute, within such time as the court may fix, a bond for such amount and for such period as the court may direct for the good conduct of such person.