What is the output of print(17 % 5)? python print(17 % 5)
- 3
- 2
- 5
- 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
B) 2
% gives the remainder: 17 = 5 × 3 + 2. SLO CS-11-C-02
Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise