How to deal with class partner who always wants to answer professor's question? I have just started master's in math. There is a class with a very "powerful" (great researcher) professor and I'm taking it. However, there is a classmate of mine who, every time the professor asks a question, she answers it. I find this a little bit anoyying because sometimes I want also to participate in class because sometimes I also have an idea and also because it seems that in academia there is a big component on "reputation" and I'm afraid that if I don't talk in class, I'm not going to get a letter of recomendation of that professor (and I make a big effort in class!). At the same time, I don't want to start a war about who answers questions more quickly. 

As in masters program, teachers don't grade exams, the only way to get a good reputation, letter of recommendation and so on, is by participating in class.

How can I deal with that situation? What is the best strategy to get noticed in class with such an anoyying student?
To answer your first question, there's nothing stopping you from answering or asking questions in class. If the other student answers questions by raising her hand, you could do so too; if she speaks out to answer questions, you could do so too. 

There is also no way you can ask someone else to change the way they behave in class as long as it is not disruptive to others. Just as you have your own reasons for wanting to answer questions, so may your classmate - maybe she wants a letter of recommendation too; maybe she just is the kind of student who naturally tends to voice out her thoughts while learning; maybe she just doesn't like keeping silent when she knows or thinks she knows the answers. Do you really expect to ask someone to not answer something so that you could get a letter of recommendation? 

To answer your broader question, trying to impress a professor by answering questions in class isn't probably the most efficient way to go about it. Make sure you get high scores in their homework/exams. If you get a good enough grade, you might even request doing a research project with them (if that's where you are interested in going). Professors understand that several bright students may stay silent in class for various reasons - maybe they are shy, maybe they aren't comfortable speaking publicly in English, or whatever other reason.