If chat is enabled in your class team, you can ask your teacher a question privately using that feature. Select the Chat icon to open a new chat and type your question there.
If you can’t open a new chat, your school doesn’t have that feature turned on. Use @mention with your teacher’s name in a channel to ask your question instead. Other class team students will be able to see your question, too.