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 731–740 of 1,222
  1. 731
  2. 732
  3. 733
  4. 734
  5. 735
  6. 736
  7. 737
  8. 738
  9. 739
  10. 740

Question 731

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 732

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 733

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 734

Free response Arraylists
StudentAnswerSheet holds one-character answers in question order. A correct answer earns1 point, an incorrect answer loses0.25 point, and "?" earns0.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 735

Free response Arraylists
Time.minutesUntil(other) returns the signed difference from this time to other in minutes. All flights occur on the same day and are stored in chronological…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 736

Free response Arraylists
StringCoder encodes words as StringPart objects, each holding a starting index and length in a master string containing every alphabet letter. decodeString…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 737

Free response Arraylists
CookieOrder stores a cookie variety and a box count. MasterOrder holds orders, possibly several of the same variety. No CookieOrder is null. public class…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 738

Free response Arrays
Trail elevations are recorded at regularly spaced markers in the int array markers. Ignore slopes between the markers. public class Trail { private int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 739

Free response Arrays
Sound stores digital samples as integers. Implement two independent methods. public class Sound { private int[] samples; // nonnull public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 740

Free response 2D Arrays
In this question you will write two methods for a class RouteCipher that encrypts (puts into a coded form) a message by changing the order of the characters in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 731 of 1,222
Page 74 of 123