There is a German word "Bulimielernen" [= bulimia learning]. It describes the brainless activity of having to learn a lot of useless stuff in a short time, and "puking" the knowledge into an exam, so it is gone afterward.