CBSE Class 11 Computer Science
Question 102 of 173
Data Handling — Question 31
Back to all questions 31
Question Question 31
Add parentheses to the following expression to make the order of evaluation more clear.
y % 4 == 0 and y % 100 != 0 or y % 400 == 0
Answer
((y % 4) == 0) and ((y % 100) != 0) or ((y % 400) == 0)