The head of the Victorian agency overseeing the VCE has resigned after exam questions were leaked to students through hidden text.