A. If a person refuses to take an oath or to make a sworn statement or affidavit required in connection with any criminal proceedings, he may affirm in lieu of swearing, and his affirmation shall fulfill the requirement and shall have the same legal effect as an oath, sworn statement, or affidavit.B. Before testifying every witness shall be required to declare that he will testify truthfully, by oath or affirmation administered in a form calculated to awaken his conscience and impress his mind with his duty to do so.