Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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,511–2,520 of 2,811
  1. 2511
  2. 2512
  3. 2513
  4. 2514
  5. 2515
  6. 2516
  7. 2517
  8. 2518
  9. 2519
  10. 2520

Question 2511

Multiple choice Unit 4: Data Collections
Consider the following code: int [][] numbers = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}; for (int r = numbers.length - 1; r > 0 ; r--) { for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2512

Multiple choice Unit 4: Data Collections
What does mystery(3543) return? public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2513

Multiple choice Unit 4: Data Collections
What does mystery(6) return? public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2514

Multiple choice Unit 4: Data Collections
What does mystery(10) return? public int mystery(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2515

Multiple choice Unit 4: Data Collections
Which recursive definitions match a loop that sums integers x through 1, for every x >= 0? Assume no integer overflow. // I:…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2516

Multiple choice Unit 4: Data Collections
What does mystery(30,18) return? public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2517

Multiple choice Unit 4: Data Collections
Which replacement makes mystery(10)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2518

Multiple choice Unit 4: Data Collections
What is printed? int result=0;int[] a={1,2,3,4,5} for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2519

Multiple choice Unit 4: Data Collections
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2520

Multiple choice Unit 4: Data Collections
What is count after the loop? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,511 of 2,811
Page 252 of 282