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

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Leap year
  • B Odd year
  • C Sum
  • D None
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.

Share This Question

Challenge a friend or share with your study group.