Analyze the following Python code snippet and identify the correct output…

PYQ EMRS TGT/PGT (ESSE) 2025

Analyze the following Python code snippet and identify the correct output produced by the program from the given options:
from math import ceil, pi
print(ceil(-pi))

  1. A.

    -3

  2. B.

    -4

  3. C.

    4

  4. D.

    The code raises an error

Attempted by 856 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…