ProgrammingModerateProduct-company MCQ pattern

What is printed on the first line?

What is printed on the first line?
import math
print(math.factorial(20) == 2432902008176640000, len(str(math.factorial(25))))
print(math.factorial(25) % 10**6, sum(map(int, str(math.factorial(10)))))
  1. A. True 25
  2. B. False 26
  3. C. True 26
  4. D. True 27

Correct answer: C. True 26

25! has 26 digits, and 20! equals 2432902008176640000. Python integers never overflow, so the exact value is available.

More Python Programming questions

Exams that ask this topic