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 21–30 of 139
  1. 21
  2. 22
  3. 23
  4. 24
  5. 25
  6. 26
  7. 27
  8. 28
  9. 29
  10. 30

Question 21

Multiple choice Sorting And Searching
How many element comparisons does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 22

Multiple choice Sorting And Searching
How does ascending…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 23

Multiple choice Sorting And Searching
Which describes ascending…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 24

Multiple choice Sorting And Searching
Sort [10,40,50,30,20,60] in descending order using insertion sort.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 25

Multiple choice Sorting And Searching
For nums=[1,2,4,3,4,5], what does search(nums,4) return? public int search(ArrayList list,int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 26

Multiple choice Sorting And Searching
For [6,5,4,3,2,1], how often does the counted statement execute? public static…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 27

Multiple choice Sorting And Searching
A list is alphabetically sorted. To sort it in reverse alphabetical order, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 28

Multiple choice Sorting And Searching
An account list is already sorted by account value. One new account must be…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 29

Multiple choice Sorting And Searching
Which best describes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 30

Multiple choice Sorting And Searching
How does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 21 of 139
Page 3 of 14