* Noun: "She gave the right answer." (Here, "answer" is the thing being given.)
* Verb: "Can you answer my question?" (Here, "answer" is the action being performed.)
* Interjection: "Answer! I'm not going to repeat myself." (Here, "answer" expresses a strong feeling or command.)
To determine the part of speech, you need to look at the context of the sentence.