1. Home
  2. Data Science
  3. Python
  4. What will be the output of 7 % 3 in Python?

Added 4 May 2024

What will be the output of 7 % 3 in Python?

  1. 2
  2. 3
  3. 1 Correct answer
  4. 0

Correct answer

C. 1

13 views

MCQSEXAM

Explanation

The % operator returns the remainder of the division, so 7 % 3 equals 1.

Doubts & discussion

Not sure why the answer is C? 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