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.

Subtopic: Arraylists Clear filter

Questions 81–90 of 173
  1. 81
  2. 82
  3. 83
  4. 84
  5. 85
  6. 86
  7. 87
  8. 88
  9. 89
  10. 90

Question 81

Multiple choice Arraylists
Consider a Clown class that has a default constructor. Suppose a list ArrayList<Clown> list is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 82

Multiple choice Arraylists
Refer to the doSomething method below. // postcondition public static void doSomething(ArrayList<SomeType> list, int i, int j) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 83

Multiple choice Arraylists
A programmer plans to write a program that simulates a small bingo game (no more than six players). Each player will have a bingo card with 20 numbers from 0 to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 84

Multiple choice Arraylists
A word creation game uses a set of small letter tiles, all of which are initially in a tile bag. A partial implementation of a TileBag class is shown below.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 85

Multiple choice Arraylists
A word creation game uses a set of small letter tiles, all of which are initially in a tile bag. A partial implementation of a TileBag class is shown below.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 86

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 87

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 88

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 89

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 90

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 81 of 173
Page 9 of 18