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 91–100 of 139
  1. 91
  2. 92
  3. 93
  4. 94
  5. 95
  6. 96
  7. 97
  8. 98
  9. 99
  10. 100

Question 91

Multiple choice Sorting And Searching
Consider two different ways of storing a set of nonnegative integers in which there are no duplicates. Method One: Store the integers explicitly in an array in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 92

Multiple choice Sorting And Searching
Consider an array arr of 64 distinct int values, which are sorted in increasing order. The first element of the array, arr[0], equals 5, and the last element,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 93

Multiple choice Sorting And Searching
A large hospital maintains a list of patients' records in no particular order. To find the record of a given patient,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 94

Multiple choice Sorting And Searching
A sorted list of 120 integers is to be searched to determine whether the value 100 is in the list. Assuming…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 95

Multiple choice Sorting And Searching
Consider a sorted array arr of n elements, where n is large and n is even. Under which conditions will a sequential search of arr be faster…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 96

Multiple choice Sorting And Searching
A large list of numbers is to be sorted into ascending order. Assuming that a "data movement" is a swap or…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 97

Multiple choice Sorting And Searching
public class Searcher { private int[] arr; /** Constructor. Initializes arr with integers. */ public Searcher() { /* implementation not shown */ } /**…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 98

Multiple choice Sorting And Searching
public class Searcher { private int[] arr; /** Constructor. Initializes arr with integers. */ public Searcher() { /* implementation not shown */ } /**…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 99

Multiple choice Sorting And Searching
After the fourth outer pass of standard ascending…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 100

Multiple choice Sorting And Searching
After the first outer pass of standard ascending…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 91 of 139
Page 10 of 14