ProgrammingModerateCAT · MBA placement

What is printed?

What is printed?
import math
print(math.comb(10, 3), math.gcd(12, 18, 24), math.lcm(4, 6, 10))
  1. A. 120 2 60
  2. B. 90 6 60
  3. C. 120 6 120
  4. D. 120 6 60

Correct answer: D. 120 6 60

math.comb(10, 3) is 120, math.gcd takes several arguments from Python 3.9, and math.lcm(4, 6, 10) is 60.

More Python Programming questions

Exams that ask this topic