The examination of a witness by the party producing him is denominated the direct examination; the examination of the same witness upon the same matter by the adverse party, the cross-examination. The direct examination must be completed before the cross-examination begins, unless the court otherwise directs.