1.

What does the function math.frexp(x) return?(a) a tuple containing the mantissa and the exponent of x(b) a list containing the mantissa and the exponent of x(c) a tuple containing the mantissa of x(d) a list containing the exponent of xI had been asked this question during an online interview.Asked question is from Math topic in chapter Mapping Functions and Modules of Python

Answer»

Correct CHOICE is (a) a tuple containing the mantissa and the exponent of x

Easy explanation - It RETURNS a tuple with two ELEMENTS. The FIRST ELEMENT is the mantissa and the second element is the exponent.



Discussion

No Comment Found

Related InterviewSolutions