The binomial probability of k successes in n tries, where the probability of success is p is:
C(n,k) p^k * (1-p)^(n-k)
The binomial probability of 5 successes (hits) in 7 tries, where the probability of a hit is 0.274 (the batting average is:
C(7,5) 0.274^5 * (1-0.274)^2