Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice questions unit by unit, 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 2,131–2,140 of 3,140
  1. 2131
  2. 2132
  3. 2133
  4. 2134
  5. 2135
  6. 2136
  7. 2137
  8. 2138
  9. 2139
  10. 2140

Question 2131

Multiple choice Unit 4: Data Collections
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 2132

Multiple choice Unit 4: Data Collections
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 2133

Multiple choice Unit 4: Data Collections
What is the proper syntax to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2134

Multiple choice Unit 4: Data Collections
int[][] grid = new int[5][3];…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2135

Multiple choice Unit 4: Data Collections
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 2136

Multiple choice Unit 4: Data Collections
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 2137

Multiple choice Unit 4: Data Collections
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 2138

Multiple choice Unit 4: Data Collections
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 2139

Multiple choice Unit 4: Data Collections
Which best describes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2140

Multiple choice Unit 4: Data Collections
How does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,131 of 3,140
Page 214 of 314