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: Arraylists Clear filter

Questions 91–100 of 225
  1. 91
  2. 92
  3. 93
  4. 94
  5. 95
  6. 96
  7. 97
  8. 98
  9. 99
  10. 100

Question 91

Free response Arraylists
Consider a note keeper object that is designed to store and manipulate a list of short notes. Here are some typical notes: pick up drycleaning special dog chow…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 92

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 93

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 94

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 95

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 96

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 97

Free response Arraylists
A text-editing program uses a Sentence class that manipulates a single sentence. A sentence contains letters, blanks, and punctuation. The first character in a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 98

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 99

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 100

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 91 of 225
Page 10 of 23