Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day Feb. 10, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    Consider the following code segment.

    int rows = (int)((Math.random() * 10) + 1);  
    int cols = (int)((Math.random() * 3) + 1);   
    
    double [][] doubleArr = new double[rows][cols];
    Java

    What is the maximum possible amount of elements that could fit in doubleArr?