1. Home
  2. Data Science
  3. Python
  4. Which of the following statements about integer division…

Added 4 May 2024

Which of the following statements about integer division in Python 3.x is true?

  1. Integer division always rounds down the result. Correct answer
  2. Integer division always rounds up the result.
  3. Integer division returns a float.
  4. Integer division is not supported in Python 3.x.

Correct answer

A. Integer division always rounds down the result.

14 views

MCQSEXAM

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

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs