which set contains rational numbers?

Rational numbers are any numbers that terminate (the decimal ends somewhere)
The only set that does this is D, since
[tex] \sqrt{25} = 5[/tex]
All other sets have these:
[tex] \sqrt{47} \: \sqrt{7} \: \pi[/tex]
None of these terminate (the decimals goes on forever), so the answer is D