Harry noticed some children from that little crowd going to the front while the strange hat, to Harry's big surprise, would exclaim "Gryffindor" / "Hufflepuff" / "Ravenclaw" / "Slytherin" and the earlier mentioned child would join one of the tables under the round of applause.