Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 541–550 of 1,079
  1. 541
  2. 542
  3. 543
  4. 544
  5. 545
  6. 546
  7. 547
  8. 548
  9. 549
  10. 550

Question 541

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 542

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 543

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 544

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 545

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 546

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 547

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 548

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 549

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 550

Multiple choice Arraylists
Return true exactly when an ArrayList of nonnull Integers is strictly increasing. Empty and singleton lists qualify. Which replacement for /* missing */ makes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 541 of 1,079
Page 55 of 108