If the prime factorization of a denominator has only 2's or only 5's, is it still a terminating decimal?

Confused about the answer in this problem:

I thought there had to be a combination of 2’s and 5’s, not one or the other. In this case is a 5^0 implied?

The denominator must break down to prime factors of only 2 and/or 5. If there are any other prime numbers in the denominator’s prime factorization, then the decimal will NOT terminate.

Sweeet. Ok. Makes sense. I had misunderstood the rule/trick. Thank you.