Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Practice Questions

Work through AP Computer Science A practice 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,222
  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
Approximately how many midpoint inspections are needed…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 412

Multiple choice Sorting And Searching
For distinct values, which input gives the maximum shifts in standard insertion sort? I: already in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 413

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 414

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 415

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 416

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 417

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 418

Free response Arrays
The PR2004 is a robot that automatically gathers toys and other items scattered in a tiled hallway. A tiled hallway has a wall at each end and consists of a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 419

Free response Arrays
This question involves reasoning about an array of integers with no duplicate values. An inversion is a pair of values in an array where a larger value appears…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 420

Free response 2D Arrays
A rectangular two-dimensional (2D) array named map represents an area where treasures are hidden. The element map[r][c] represents the object at row r and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 411 of 1,222
Page 42 of 123