Doubt means you don’t know whether something is true or will be possible.
It does NOT mean that you are uncertain about something, or don’t know it, or don’t know what to do.
I’m not sure what to say. (NOT I doubt what to say.)
If your teacher says something that isn’t clear, say There’s something I don’t understand or I have a question (NOT I have a doubt).