Welcome to Math Help Forum!
And if the events are independent, .
But this is an inclusive OR; in other words, it is the probability that the student knows the answer to question 1 or question 2 or both. So if we want the probability that he knows the answer to exactly one question, we subtract from this the probability that he knows the answer to both. Thus:
or but not both