178. Whoever refuses to bind himself by an oath to state the truth, when required so to bind himself by a public servant legally competent to require that he shall so bind himself, shall be punished with imprisonment for a term which may extend to six months or with fine which may extend to two thousand ringgit or with both.