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.

Subtopic: Sorting And Searching Clear filter

Questions 71–80 of 139
  1. 71
  2. 72
  3. 73
  4. 74
  5. 75
  6. 76
  7. 77
  8. 78
  9. 79
  10. 80

Question 71

Multiple choice Sorting And Searching
A four-character pattern is "pqrs". A block-based scan first inspects indices3,7,11,...…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 72

Multiple choice Sorting And Searching
The array names[0], names[1], ..., names[9999] is a list of 10,000 name strings. The list is to be searched to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 73

Multiple choice Sorting And Searching
Which algorithm does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 74

Multiple choice Sorting And Searching
In a standard in-place quicksort partition, elements are rearranged…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 75

Multiple choice Sorting And Searching
What is merge’s role in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 76

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 77

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 78

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 79

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 80

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 71 of 139
Page 8 of 14