Wing it

To act without preparation.

My friend was not prepared for the examination so he had to wing it.