directly interpreted by the compiler, so
consider the following operation to be
performed.
>>>x = 13 ? 2
objective is to make sure x has a integer
value, select all that apply (python 3.xx)
Explanation: // is integer operation in python
Dear candidates you will find MCQ questions of Problem Solving and 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: // is integer operation in python
Explanation: python codes have to be indented properly.
Explanation: list data type can store any
Explanation: dictionary stores values in terms of keys and values.
Explanation: carefully look at the colons.
Explanation: cause a decimal value of 0 to appear as output.
Explanation: execute help(math.trunc) to get details.
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.
Explanation: l (or l) stands for long.
Explanation: infinity is a special case of floating point numbers. it can be obtained by float(‘inf’).
Jump to