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.

Questions 11–20 of 143
  1. 11
  2. 12
  3. 13
  4. 14
  5. 15
  6. 16
  7. 17
  8. 18
  9. 19
  10. 20

Question 11

Free response Arrays
Consider the following partial declaration for a WordScrambler class. The constructor for the WordScrambler class takes an even-length array of String objects…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 12

Free response Arrays
An array of positive integer values has the mountain property if the elements are ordered such that successive values increase until a maximum value (the peak…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 13

Free response 2D Arrays
A two-dimensional array of temperatures is represented in the following class. public class TemperatureGrid { /** A two-dimensional array of temperature values,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 14

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 15

Free response Arrays
This question involves reasoning about one-dimensional and two-dimensional arrays of integers. You will write three static methods, all of which are in a single…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 16

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 17

Free response 2D Arrays
The LightBoard class models a two-dimensional display of lights, where each light is either on or off, as represented by a Boolean value. You will implement a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 18

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 19

Free response 2D Arrays
A theater contains rows of seats with the same number of seats in each row. Some rows contain tier 1 seats, and the remaining rows contain tier 2 seats. Tier 1…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 20

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 11 of 143
Page 2 of 15