🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Python Conditions: all 13 questions

Quiz: Python Conditions · Question 5 of 13

Is 1900 a leap year according to the rule (year % 4 == 0 and year % 100 != 0) or year % 400 == 0?

Is 1900 a leap year according to the rule (year % 4 == 0 and year % 100 != 0) or year % 400 == 0?

  1. A.Yes
  2. B.No
  3. C.Only in India
  4. D.The rule gives an error
Answer & explanation

Correct answer: No

1900 is divisible by 100 but not by 400, so both parts are False.

Can you get the rest right without peeking?

Take the timed Quiz: Python Conditions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →