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 741–750 of 1,222
  1. 741
  2. 742
  3. 743
  4. 744
  5. 745
  6. 746
  7. 747
  8. 748
  9. 749
  10. 750

Question 741

Free response Arraylists
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 742

Free response 2D Arrays
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 743

Free response Arraylists
DownloadInfo stores a unique song title and a download count initially1; incrementTimesDownloaded increases that count. MusicDownloads holds a list with no…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 744

Free response Arrays
A multiplayer game called Token Pass has the following rules. Each player begins with a random number of tokens (at least 1, but no more than 10) that are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 745

Free response 2D Arrays
A telescope scans a rectangular area of the night sky and collects the data into a 1-dimensional array. Each data value scanned is a number representing the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 746

Free response Arraylists
Digits stores the decimal digits of a nonnegative int in original left-to-right order. public class Digits { private ArrayList digitList public Digits(int num)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 747

Free response 2D Arrays
This question involves reasoning about a two-dimensional (2D) array of integers. You will write two static methods, both of which are in a single enclosing…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 748

Free response Arraylists
An opening and a closing delimiter are distinct nonempty strings. Input tokens contain either one exact delimiter or ordinary text. Balanced delimiters never…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 749

Free response Arraylists
A high school club maintains information about its members in a MemberInfo object. A MemberInfo object stores a club member's name, year of graduation, and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 750

Free response Arraylists
Users of a website are asked to provide a review of the website at the end of each visit. Each review, represented by an object of the Review class, consists of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 741 of 1,222
Page 75 of 123