adplus-dvertising
frame-decoration

Question

What is the output of the following?
print(math.isinf(float('-inf')))

a.

error, the minus sign shouldn’t have been inside the brackets

b.

error, there is no function called isinf

c.

True

d.

False

Posted under Python

Answer: (c).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs

Q. What is the value of x if x = math.ldexp(0.5, 1)?

Q. What is returned by math.modf(1.0)?

Q. What is the result of math.trunc(3.1)?

Q. What is the output of print(math.trunc(‘3.1’))?

Q. Which of the following is the same as math.exp(p)?

Q. What is returned by math.expm1(p)?

Q. What is the default base used when math.log(x) is found?

Q. Which of the following aren’t defined in the math module?

Q. What is returned by int(math.pow(3, 2))?

Q. What is output of print(math.pow(3, 2))?

Q. What is the value of x if x = math.sqrt(4)?

Q. What does math.sqrt(X, Y) do?

Q. The value returned when we use the function isoweekday() is ______ and that for the function weekday() is ________ if the system date is 19th June, 2017 (Monday).

Q. To include the use of functions which are present in the random library, we must use the option:

Q. What the does random.seed(3) return?

Q. Which of the following cannot be returned by random.randrange(4)?

Q. Which of the following is equivalent to random.randrange(3)?

Q. The function random.randint(4) can return only one of the following values. Which?

Q. Which of the following is equivalent to random.randint(3, 6)?

Q. Which of the following will not be returned by random.choice(“1 ,”)?