What is the output of print(17 % 5)? python print(17 % 5)

  1. 3
  2. 2
  3. 5
  4. 3.4
Answer

B) 2

% gives the remainder: 17 = 5 × 3 + 2. SLO CS-11-C-02

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise