Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Data Collections, then check each answer against a worked solution.

Free · no sign-up Open questions need no account. Sign up or log in to open the rest.

Questions 211–220 of 1,079
  1. 211
  2. 212
  3. 213
  4. 214
  5. 215
  6. 216
  7. 217
  8. 218
  9. 219
  10. 220

Question 211

Multiple choice 2D Arrays
Consider the following code segment: int[][] nums = {{1, 2, 3}, {100, 200, 300}, {4, 6, 5}, {7, 8, 6}}; int sum = 0; for (int row = 0;row < nums.length /…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 212

Multiple choice 2D Arrays
Consider the following code segment: int[][] mystery = new int[3][3]; int counter = 0; while (counter < mystery.length) { for (int col = 0;col <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 213

Multiple choice 2D Arrays
What is the proper syntax to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 214

Multiple choice 2D Arrays
int[][] grid = new int[5][3];…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 215

Multiple choice 2D Arrays
A 2D array is initialized: int [][] array = {{1, 2, 3}, {4, 5,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 216

Multiple choice 2D Arrays
A 2D double array is declared and initialized to track the terrain of a city park. Each value in the 2D array represents the height of a particular latitude and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 217

Multiple choice 2D Arrays
A 2D double array terrainMap is declared and initialized to track the terrain of a city park. Each value in the 2D array represents the height of a particular…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 218

Multiple choice 2D Arrays
A 2D double array terrainMap is declared and initialized to track the terrain of a city park. Each value in the 2D array represents the height of a particular…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 219

Multiple choice Sorting And Searching
Which best describes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 220

Multiple choice Sorting And Searching
How does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 211 of 1,079
Page 22 of 108