निम्नलिखित फलन का अध्ययन कीजिए: इस कोड का आउटपुट क्या होगा?
Study the following function: What will be the output of this code?
import math
abs(math.sqrt(36))
A)
B)
C)
D)
Explanation:
The square root of 36 is 6.0
. The abs()
function returns the absolute value, but since 6.0
is already positive, the result remains 6.0
.
So, the correct answer is (D) 6.0.