CBSE Class 11 Computer Science Question 61 of 63

Introduction to Python Modules — Question 8

Back to all questions
8
Question

Question 8

math.sqrt(x) returns a ValueError if x is a negative number.

Answer

True

Reason — The math.sqrt(x) function in Python returns a ValueError if x is a negative number because the square root of a negative number is not a real number.