Teachers like it when students ask questions. There are a few reasons for this. First of all, it tells them that you're paying attention. Second, it shows them that you think they're interesting and that you're enjoying the subject (even if you're not). Third, it makes them feel smart and helpful. Everyone likes to feel smart and helpful. Ask questions when you have them and you'll find your teacher liking you more and more.
For example, if your teacher is talking about chemistry and Avogadro's number, ask them how they memorize the number. As a warning, however, try not to ask pointless questions. You don't want to ask a question just so you have a question to ask. Eventually, this will annoy your teacher and they'll think that you're doing it just for the attention. Do not ask personal questions or something that is important only to you. You can ask about homework, pop quiz dates or something that does not bother you alone or if you don't understand. "What pages do we have to read for tomorrow?" and "Ma'am, is there a better method to memorize this?" will be appropriate. "Why did I get a D?" and " Ma'am, which boy band is the hottest according to you?" are definite nos. "Ma'am, do you have a boyfriend?" type of questions which are related to personal relationships of teachers are not to be asked at any cost. Teachers get ticked due to this and can get you suspended.