Question
a.
2.0
b.
20
c.
2
d.
2.0000000000000004
Posted under Python
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 result of sum([.1 for i in range(20)])?
Similar Questions
Discover Related MCQs
Q. What is returned by math.isfinite(float(‘inf’))?
View solution
Q. What is returned by math.isfinite(float(‘nan’))?
View solution
Q. What is x if x = math.isfinite(float(‘0.0’))?
View solution
Q. What is the value of x if x = math.ldexp(0.5, 1)?
View solution
Q. What is returned by math.modf(1.0)?
View solution
Q. What is the result of math.trunc(3.1)?
View solution
Q. What is the output of print(math.trunc(‘3.1’))?
View solution
Q. Which of the following is the same as math.exp(p)?
View solution
Q. What is returned by math.expm1(p)?
View solution
Q. What is the default base used when math.log(x) is found?
View solution
Q. Which of the following aren’t defined in the math module?
View solution
Q. What is returned by int(math.pow(3, 2))?
View solution
Q. What is output of print(math.pow(3, 2))?
View solution
Q. What is the value of x if x = math.sqrt(4)?
View solution
Q. What does math.sqrt(X, Y) do?
View solution
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).
View solution
Q. To include the use of functions which are present in the random library, we must use the option:
View solution
Q. What the does random.seed(3) return?
View solution
Q. Which of the following cannot be returned by random.randrange(4)?
View solution
Q. Which of the following is equivalent to random.randrange(3)?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!