Conditionals · AI Suggestion Evaluation

Judge — analyse and evaluate L6 Evaluation Macro Structure ~5 min

Is this leap-year check trustworthy?

Requirement: a year is a leap year if it is divisible by 4, except century years (divisible by 100), which are leap years only if divisible by 400. An AI generated the function below. Accept or reject it, then justify your decision by naming the years you checked.

AI suggestion
def is_leap_year(year):
    return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)

Your decision

Why this activity was chosen
  • Bloom level: L6 Evaluation: Accept or reject a generated line, with a reason.
  • Block Model level: Macro Structure (step 4 of 4): the purpose of the whole program: the problem it solves and the goal it serves.
  • Misconception targeted: shown after you answer, so it does not give the answer away.

The pedagogically interesting moment is not generating code but deciding whether to trust it. Students practise evaluation: correctness, fit to the requirement, and a stated justification.

AI’s role here: The platform presents a supposed AI suggestion. A live model must not quietly correct the suggestion or complete the function for the student.