Which of the following statements about integer division in Python 3.x is true?
-
A
Integer division always rounds down the result.
Correct answer
-
B
Integer division always rounds up the result.
-
C
Integer division returns a float.
-
D
Integer division is not supported in Python 3.x.
Correct answer
A. Integer division always rounds down the result.
14 views
Explanation
Integer division in Python 3.x always rounds down the result to the nearest integer.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ