Hogwarts song, each student in turn is seated upon the stool in front of the rest of the student body. The Hat is placed on the student's head, whereupon it examines his or her mind and assigns them to one of the four Houses based on abilities, personality, and preferences. After the Sorting Ceremony, the students and teachers enjoy a feast, prepared by the Hogwarts house-elves. If Dumbledore is feeling cheerful, he will lead the students in singing the school song. Hogwarts is divided into four houses, each bearing the last name of its founder: Godric Gryffindor, Salazar Slytherin, Rowena Ravenclaw
Hogwarts staff disobey her. After the raid of Hogwarts in "Half-Blood Prince", Sprout is a staunch advocate of keeping Hogwarts open. She also supports the suggestion that Dumbledore should be laid to rest at Hogwarts. Sprout attends Dumbledore's funeral, where she appears cleaner than she has ever been seen before. In "Deathly Hallows", she chases Snape away from Hogwarts with Professors McGonagall and Flitwick. Informed that Voldemort and his Death Eaters are coming to besiege Hogwarts, she uses her knowledge of magical plants by improvising offensive botany, and, with the help of several students, throws Mandrakes, Snargaluff pods, and Venomous Tentaculas off