There are two long morning classes with a short break in between them for students to get to their next class.
Apart from losing points from a house, serious misdeeds at Hogwarts are punishable by detention.