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 411–420 of 1,079
  1. 411
  2. 412
  3. 413
  4. 414
  5. 415
  6. 416
  7. 417
  8. 418
  9. 419
  10. 420

Question 411

Multiple choice Sorting And Searching
What is closest to the maximum…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 412

Multiple choice Sorting And Searching
For large n and constant-cost comparisons, order these by average running-time growth: I…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 413

Multiple choice Sorting And Searching
In a Hi-Lo guessing game, a uniformly selected integer lies in1..100. Each incorrect guess receives truthful higher/lower…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 414

Multiple choice Sorting And Searching
In the same1..100 game, the computer tests1,2,... and must actually…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 415

Multiple choice Sorting And Searching
A target is uniformly distributed over1..100. Sequential search submits1,2,...…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 416

Multiple choice Arraylists
Assume list is an ArrayList<Integer> that has been correctly constructed and populated with the following items. [13, 7, 0, 5, 12, 6, 10] Consider the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 417

Multiple choice Arraylists
Consider the following code segment. ArrayList<String> supernatural = new ArrayList<String>(); supernatural.add("Vampire"); supernatural.add("Werewolf");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 418

Multiple choice 2D Arrays
Suppose that grid has been initialized as n-by-n 2-D array of integers.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 419

Multiple choice Recursion
Consider the following method. public int loopy(int n) { if (n % 7 == 0) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 420

Multiple choice Arrays
Consider the following code segment. int [] array = {-3, 0, 2, 4, 5, 9, 13, 1, 5}; for (int n = 1; n < array.length - 1; n++) { if…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 411 of 1,079
Page 42 of 108