Q. What is the output of the following code : print 9//2
β
Correct Answer: (C)
4
Dear candidates you will find MCQ questions of Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Explanation: Neither of 0.1, 0.2 and 0.3 can be represented accurately in binary. The
round off errors from 0.1 and 0.2 accumulate and hence there is a difference of 5.5511e-17
between (0.1 + 0.2) and 0.3.
Jump to