When the jurors appear, they must be asked by the court or the clerk whether they have agreed upon their verdict and if the foreman answers in the affirmative, they, on being required, shall declare the same.