CBSE Class 12 Computer Science Question 23 of 105

Python Revision Tour — Question 7

Back to all questions
7
Question

Question 7

What will be the value of the expression?
    14 + 13 % 15

  1. 14
  2. 27
  3. 12
  4. 0
Answer

27

Reason — According to operator precedence remainder (%) operation will be done first and then addition (+) will be done.

14 + 13 % 15
= 14 + 13
= 27