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 31–40 of 143
  1. 31
  2. 32
  3. 33
  4. 34
  5. 35
  6. 36
  7. 37
  8. 38
  9. 39
  10. 40

Question 31

Free response 2D Arrays
This question manipulates a two-dimensional array. In parts (a) and (b) you will write two methods of a Matrix class. In doing so, you will use the reverseArray…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 32

Free response Arraylists
Determine if the rate is increasing. If a stock price is increasing, that means the value of it is going up. If the rate that the stock price is increasing is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 33

Free response 2D Arrays
Free-Response Practice: Modifying a 2D array Write a method that takes a 2D array as a parameter and returns a new 2D array. The even rows of the new array…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 34

Free response 2D Arrays
Free-Response Practice: Filling a 2D array Write a method that will fill in a 2D boolean array with a checkerboard pattern of alternating true and false. The…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 35

Free response 2D Arrays
Find all the songs that contain the word "Love" in the title. One of the most popular themes in music lyrics is love. Suppose a compilation of thousands of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 36

Free response Arrays
All emails received by the Office of Complaints in Appaloosa County are assigned a priority rank from 0 to 9 and answered in order of priority; emails of higher…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 37

Free response 2D Arrays
In a traffic modeling application, a segment of a highway is represented as a two-dimensional array of integers, in which each row represents one lane and each…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 38

Free response 2D Arrays
Seats in a movie theater are modeled by a two-dimensional array of boolean values: true represents an occupied seat and false represents a vacant seat. Row…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 39

Free response 2D Arrays
A crossword puzzle grid is a two-dimensional rectangular array of black and white squares. Some of the white squares are labeled with a positive number…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 40

Free response Arraylists
This question involves the process of taking a list of words, called wordList, and producing a formatted string of a specified length. The list wordList…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 31 of 143
Page 4 of 15