Single Choice
Moderate
Qyear%4==0 && year%100!=0 || year%400==0 checks:
ID: #25962
MCQ Quiz - Class 8 - Decision Control Structure
1 views
Question Info
#25962Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - Decision Control StructureTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Correct Answer Explanation:
This is the standard leap year formula: divisible by 4 but not 100, OR divisible by 400.
Why the other options are incorrect:
- Option B: Odd/even check is much simpler.
- Option C: Sums use +.
- Option D: It's a valid check for leap years.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic