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 121–130 of 143
  1. 121
  2. 122
  3. 123
  4. 124
  5. 125
  6. 126
  7. 127
  8. 128
  9. 129
  10. 130

Question 121

Free response 2D Arrays
An OrchardGrid object stores fruit counts for trees arranged in a rectangular grid. Each entry in fruit is the number of fruits currently on one tree. public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 122

Free response Arraylists
This question involves the analysis of messages exchanged in a chat room. The following Message class represents a single message in the chat room. public class…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 123

Free response 2D Arrays
This question involves analyzing an orchard of apples to determine how many apple pies can be baked. The orchard is represented as a two-dimensional array of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 124

Free response Arrays
Temperature Range Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String methods…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 125

Free response Arrays
Last Place of the Maximum Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 126

Free response Arrays
Two in a Row Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String methods (length,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 127

Free response Arrays
Price Drops Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String methods (length,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 128

Free response Arrays
Liked By Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String methods (length,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 129

Free response Arrays
Mirror Array Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String methods (length,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 130

Free response Arrays
Judges’ Scores Set directions Only what was taught. Arrays (create, read, write, length, traverse), for-each, swap and reverse, max/min, String methods (length,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 121 of 143
Page 13 of 15