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.

Subtopic: Arraylists Clear filter

Questions 1–10 of 52
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10

Question 1

Free response Arraylists
The factory keeps track of its printing machines in array machines, and it keeps track of its paper supply in two lists: newRolls to hold fresh rolls and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2

Free response Arraylists
A game uses square tiles that have numbers on their sides. Each tile is labeled with a number on each of its four sides and may be rotated clockwise, as…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 3

Free response Arraylists
This question involves reasoning about pairs of words that are represented by the following WordPair class. public class WordPair { /** Constructs a WordPair…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 4

Free response Arraylists
A school district would like to get some statistics on its students' standardized test scores. Scores will be represented as objects of the following ScoreInfo…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 5

Free response Arraylists
A two-dimensional array of integers in which most elements are zero is called a sparse array. Because most elements have a value of zero, memory can be saved by…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 6

Free response Arraylists
A student plans to analyze product reviews found on a Web site by looking for keywords in posted reviews. The ProductReview class, shown below, is used to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 7

Free response Arraylists
Coin Collector The High School Coin Collection Club needs new software to help organize its coin collections. Each coin in the collection is represented by an…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 8

Free response Arraylists
A train is composed of an engine and any number of train cars. The engine is rated to pull up to a maximum weight, based on its power. The weight of all the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 9

Free response Arraylists
A printing factory maintains many printing machines that hold rolls of paper. public class Machine { private PaperRoll paper; public Machine(PaperRoll roll) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 10

Free response Arraylists
Consider a system for processing names and addresses from a mailing list. A Recipients class will be used as part of this system. The lines in the mailing list…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1 of 52
Page 1 of 6