If a defendant against whom a judgment is entered in the office, whether an order for an inquiry of damages has been made therein or not, shall, before the end of the term at which it becomes final, appear and plead to issue, and shall, in the cases mentioned in the next preceding section in which an affidavit is required, file such affidavit with his plea, the judgment shall be set aside; but if the judgment has been entered up in court or the order for an inquiry of damages has been executed, it shall not be set aside without good cause be shown therefor. Any such issue may be tried at the same term, unless the defendant show by affidavit, filed with the papers, good cause for a continuance. But the plaintiff shall have the right to cross-examine the defendant upon the matters contained in such affidavit.