Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice questions unit by unit, 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 2,651–2,660 of 3,140
  1. 2651
  2. 2652
  3. 2653
  4. 2654
  5. 2655
  6. 2656
  7. 2657
  8. 2658
  9. 2659
  10. 2660

Question 2651

Free response Unit 4: Data Collections
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 2652

Free response Unit 4: Data Collections
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 2653

Free response Unit 4: Data Collections
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 2654

Free response Unit 4: Data Collections
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 2655

Free response Unit 4: Data Collections
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 2656

Free response Unit 4: Data Collections
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 2657

Free response Unit 4: Data Collections
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 2658

Free response Unit 4: Data Collections
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 2659

Free response Unit 4: Data Collections
ClimbInfo stores peak name and climb time. ClimbingClub stores nonnull ClimbInfo objects in climbList. Parts(a) and(b) are alternative implementations of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2660

Free response Unit 4: Data Collections
A grayscale image is represented by a 2-dimensional rectangular array of pixels (picture elements). A pixel is an integer value that represents a shade of gray.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,651 of 3,140
Page 266 of 314