Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day April 7, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    Given the following 2D array:

    String [][] ingredients =  { {"flour", "sugar", "butter", "salt"},
                                 {"oil", "peanuts", "chocolate", "berries"}};
    Java

    Which of the following are the first three values visited when the ingredients array is traversed in row-major order?