What will be the output of the following Python program?

import math
print(math.ceil(4.2))
                        

Options

  • A. 4
  • B. 4.2
  • C. 5
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. 5

Detailed Explanation

Explanation: ceil() returns the smallest integer greater than or equal to the given number.