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 571–580 of 1,222
  1. 571
  2. 572
  3. 573
  4. 574
  5. 575
  6. 576
  7. 577
  8. 578
  9. 579
  10. 580

Question 571

Multiple choice Arrays
Return arraySize random even integers in[0,range] inclusive. Assume arraySize≥0 and0≤range≤1000000. Which replacement for /* missing */ makes the method…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 572

Multiple choice Arraylists
cities starts as[Oakland,Chicago,Milwaukee,Seattle,Denver,Boston]. What does it contain…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 573

Multiple choice Arraylists
What occurs? ArrayList subjects=new ArrayList () subjects.add("French"); subjects.add("History")…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 574

Multiple choice Arraylists
After the first outer pass of standard ascending insertion…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 575

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 576

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 577

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 578

Multiple choice Arraylists
What is printed? int total=3 ArrayList…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 579

Multiple choice Arraylists
For a list of nonempty lowercase words, which segments always remove every word starting with n..z? // Example msg: //…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 580

Multiple choice Sorting And Searching
Which condition completes ascending insertion sort? public void insertionSort(int[] arr) { for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 571 of 1,222
Page 58 of 123