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,661–2,670 of 3,140
  1. 2661
  2. 2662
  3. 2663
  4. 2664
  5. 2665
  6. 2666
  7. 2667
  8. 2668
  9. 2669
  10. 2670

Question 2661

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

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

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

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

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

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

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

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

Free response Unit 4: Data Collections
This question involves the analysis of weather data. The following WeatherData class has an instance variable, temperatures, which contains the daily high…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2670

Free response Unit 4: Data Collections
This question involves pieces of candy in a box. The Candy class represents a single piece of candy. public class Candy { / * * Returns a String representing…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,661 of 3,140
Page 267 of 314