Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections FRQ

Work through AP Computer Science A free-response 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 41–50 of 143
  1. 41
  2. 42
  3. 43
  4. 44
  5. 45
  6. 46
  7. 47
  8. 48
  9. 49
  10. 50

Question 41

Free response Arraylists
In an International ballroom dancing competition, competitors are scored by a panel of judges on a scale from 0 to 100. The final score for each couple is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 42

Free response 2D Arrays
In chess, a queen can move vertically, horizontally, and diagonally on an 8-by-8 chessboard. The picture below shows all the positions on the board that a queen…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 43

Free response Arraylists
This question involves the manipulation and analysis of a list of words. The following WordChecker class contains an ArrayList<String> to be analyzed and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 44

Free response 2D Arrays
This question involves a path through a two-dimensional (2D) array of integers, where the path is based on the values of elements in the array. When an element…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 45

Free response Arraylists
WordList stores strings of letters in myList. Implement both methods while preserving the order of words that remain. public class WordList { private ArrayList…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 46

Free response Arrays
Hotel maintains rooms numbered0 through rooms.length−1 and a waiting list of guest names. A null rooms entry is unreserved; any nonnull entry is a Reservation…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 47

Free response Arrays
StudentRecord holds more than one integer score. Scores have improved if every successive score is at least the preceding score. Improved records average only…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 48

Free response Arraylists
An appointment scheduler uses TimeInterval.overlapsWith to determine overlap. Appointment exposes its TimeInterval. DailySchedule stores a list of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 49

Free response Arrays
Customers have a name and positive unique ID and are ordered by name, then ID. Implement a comparison and a two-pass intersection of sorted customer arrays.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 50

Free response Arrays
A positive integer is a self-divisor when every decimal digit divides the original number. A0 digit disqualifies it. For example128 qualifies, while26 does not…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 41 of 143
Page 5 of 15