In your two examples, when they ask what "it" or "they" refer to, they are asking what the antecedent of the pronoun is. A pronoun refers to a noun, its antecedent. In that last sentence, "it" refers to "pronoun".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.