What is the use of the sqrt() function?
A. To find the square of a number
B. To find the square root of a number
C. To find the cube root of a number
D. To find the cube of a number
Answer: B
Explanation: The sqrt() function is used to find the square root of a number. It takes one argument; the number whose square root is to be found out. This function can accept any number-based datatypes and gives the output in the double datatype.