this might be the probability way...
Ok so there are seven questions and 2 are answered correctly, so these two can be chosen in 7C2 ways.
Now the other 5 questions have to be answered incorrectly, and there are three ways to do this for any one question.
So 3.3.3.3.3 = 3^5 ways to answer...