logo

Question detail

In Python 3, what is the result of 17 % 5?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

In Python 3, what is the result of 17 % 5?.

  1. A.2
  2. B.3
  3. C.5
  4. D.12

Model answer

What a good answer should say

  • 2

Explanation

Why this works

The % operator gives the remainder from integer division. Five goes into 17 three times, with a remainder of 2.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.