🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

What will be the output of the following code snippet ?

from math import *
a = 2.19
b = 3.999999
c = -3.30
print(int(a), floor(b), ceil(c), fabs(c))
A)
B)
C)
D)

Explanation:

Here’s a quick breakdown:

  1. int(a): Converts 2.19 to 2.
  2. floor(b): Floors 3.999999 to 3.
  3. ceil(c): Ceils -3.30 to -3.
  4. fabs(c): Converts -3.30 to its absolute value 3.30.

So, the output will be:

2 3 -3 3.3

Answer: (C) 2 3 -3 3.

Latest Updates