Report Bug

Qus

What will be the output of the following Python function?

import math

abs(math.sqrt(25))

Qusनिम्नलिखित Python फ़ंक्शन का आउटपुट क्या होगा?


A. Error
B. -5
C. 5
D. 5.0


Solution
D. 5.0



Explanation
The abs() function prints the absolute value of the argument passed. For example: abs(-5)=5. Hence, in this case we get abs(5.0)=5.0.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad