(1) The trial court may hear testimony in mitigation of a sentence at the term of conviction or plea or at the next term. The prosecuting attorney may offer testimony on behalf of the state to give the court a true understanding of the case. The court shall determine whether sentence should immediately be imposed. The court on its own motion may direct the department of probation of the county in which the defendant resides, or its own regular probation officer, to make any inquiries and presentence investigation reports that the court requires concerning the defendant