This is an example of passive listening: you're only listening to the teacher without actually doing anything yourself.
An example of active listening in this situation would be if you restated the teacher's message in your own words to show him or her that you've understood what they said.