Q.1.
What does the function math.frexp(x) return?
Q.2.
What is the result of math.fsum([.1 for i in range(20)])?
Q.3.
What is the result of sum([.1 for i in range(20)])?
Q.4.
What is returned by math.isfinite(float(‘inf’))?
Q.5.
What is returned by math.isfinite(float(‘nan’))?
Q.6.
What is x if x = math.isfinite(float(‘0.0’))?
Q.7.
What will be the output of the following Python code? >>> -float('inf') + float('inf')
Q.8.
What will be the output of the following Python code? print(math.isinf(float('-inf')))
Q.9.
What is the value of x if x = math.ldexp(0.1)?
Q.10.
What is returned by math.modf(1.0)?