← 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?
- A.Yes
- B.No
- C.Only in India
- 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 →