Let $X$ be the number of questions answered correctly.
The probability of getting a question correct is $ \frac{1}{4} $
$X \sim\text{Binomial}(25, 1/4)$
$ Pr(X=17) = \binom{25}{17} {\left( \frac{1}{4} \right)}^{17} {\left( \frac{3}{4} \right)}^{25-17} $
$ Pr(X=17) = \binom{25}{17} {\left( \frac{1}{4} \right)}^{17} {\left( \frac{3}{4} \right)}^{8} $