Does my teacher have any right to do this?

Even in high school, that’s not out of the ordinary. I’d definitely expect it in college.