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 81–90 of 143
  1. 81
  2. 82
  3. 83
  4. 84
  5. 85
  6. 86
  7. 87
  8. 88
  9. 89
  10. 90

Question 81

Free response 2D Arrays
The Appointment class is used to store information about a person's scheduled appointments. A partial declaration of the Appointment class is shown. public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 82

Free response Arraylists
A tournament round pairs best-ranked competitors with worst-ranked competitors. Implement the Round constructor and buildMatches. Names are ordered from best to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 83

Free response 2D Arrays
This question involves reasoning about a number puzzle that is represented as a two-dimensional array of integers. Each element of the array initially contains…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 84

Free response Arraylists
GPSRouter stores routes in an initialized ArrayList routes. Route provides String getName(), int getMiles(), and void setMiles(int num). The provided…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 85

Free response 2D Arrays
The High School Coin Collection Club needs new software to help organize its coin collections. Each coin in the collection is represented by an object of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 86

Free response Arraylists
Consider the following incomplete class definition for a grade book: public class StudentGradeBook { private ArrayList<Integer> grades; // values 0-100 public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 87

Free response 2D Arrays
A grayscale image can be represented as a 2D array of integers, where each value is a pixel intensity from 0 (black) to 255 (white). Consider the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 88

Free response Arraylists
A sensor produces a stream of numeric readings. Consider the following incomplete class: public class SensorLog { private ArrayList<Double> readings; public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 89

Free response 2D Arrays
A board game uses a 2D integer array where each cell holds a point value. Consider: public class GameBoard { private int[][] board; // rows x cols public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 90

Free response Arraylists
The Arctic Research Station Polaris-7 collects hourly temperature readings from its sensor array. Scientists store these readings in an ArrayList<Double> and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 81 of 143
Page 9 of 15