ExamVeda
Login
Home
Python Built In Functions
?

What will be the output of the following Python function?
import math
abs(math.sqrt(25))

Answer & Solution
Correct Answer: Option C
The correct answer is Option C: 5. Here's why:

The math.sqrt() function returns the square root of a given number.
In this case, math.sqrt(25) returns the square root of 25, which is 5.
Then, the abs() function returns the absolute value of the result, which is 5.
Therefore, the output of the code abs(math.sqrt(25)) is 5.

So, the correct choice is Option C: 5.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.