The probability of getting 2/7 correct of the multiple choice quiz (with 4 alternate answers)
= 7c2 * (1/4)^2 * (3/4)^5
= 7c2 *3^5 / 4^7
[Now probability of getting 2/7 correct] = [no of possible ways of getting 2/7 correct] / [no of total ways of answering the quiz]
therefore,
[no of possible ways of getting 2/7 correct] = [probability of getting 2/7 correct] * [ no of total ways of answering the quiz]
since there's 4^7 ways of answering the quiz,
no of possible ways of getting 2/7 correct
= (7c2 * 3^5 / 4^7) * (4^7)
= 7c2 * 3^5
That's pretty much how it works.