Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day 2024 - 2025 May 28, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    * Iteration 1: `x = 0`, even → `x += 3` → `x = 3` * Iteration 2: `x = 3`, odd → `x++` → `x = 4` * Iteration 3: `x = 4`, even → `x += 3` → `x = 7` Loop ends when `x = 7`, so output is `7`.