The way to go (if you want to become a teacher's pet) is to first pick a teacher that has pets, not one who will seee through it. Then do all your work to a high standard, neat, on time, for the first term or so. Keep quiet in class although you should sometimes ask semi-intelligent (not too intelligent) questions relating to the topic. Take notes when you don't have to and sit with other people who are nerds. Then, once you have fully ingratiated yourself, you're allowed to relax; reap the benefits of doing the same amount of work as in your other classes, but getting better marks because you have your tongue so very far up the teacher's ass.
Hope this has been helpful to you.