Easy Multiple Choice QuestionsΒΆ

These problems are easier than most of those that you will usually see on the AP CS A exam.

9-7-1: How many columns does a have if it is created as follows int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?




9-7-2: Which of the following statements assigns the letter S to the third row and first column of a two-dimensional array named strGrid (assuming row-major order).






9-7-3: How would you get the value 6 out of the following array int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?