Simulation of the written exam