Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day May 15, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    Given the following code, what will be printed if shadow is true and augustStart is false?

    if (shadow && augustStart) {
        System.out.println("Summer vacation is 4 weeks away!");
    }
    if (shadow || augustStart) {
        System.out.println("Summer vacation is just around the corner!");
    }
    if (!shadow && augustStart) {
        System.out.println("Summer vacation is just around the corner!");
    }
    if (!shadow || !augustStart) {
        System.out.println("Summer vacation is 4 weeks away!");
    }
    Java