I've my way of dealing with cocky students, just make them fly straight and level for 10 mins, they'll soon come down a peg or 20.
Somone on pprune has a great signature that I use when I feel a student is starting to get over-confident. "Confident, cocky, lazy, Dead." Says it all really.