Placement AptitudeModerateTCS NQT · Capgemini · Cognizant pattern

How many zeros are there at the end of 125! (125 factorial)?

  1. A. 31
  2. B. 28
  3. C. 25
  4. D. 30

Correct answer: A. 31

Count the factors of 5: ⌊125/5⌋ + ⌊125/25⌋ + ⌊125/125⌋ = 25 + 5 + 1 = 31. Stopping at 25/30 misses the extra 5s in 25, 50, … and 125.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic