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: 2D Arrays Clear filter

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

Question 11

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 12

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 13

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 14

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 15

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 16

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 17

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 18

Free response 2D Arrays
In chess, a queen can move vertically, horizontally, and diagonally on an 8-by-8 chessboard. The picture below shows all the positions on the board that a queen…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 19

Free response 2D Arrays
This question involves a path through a two-dimensional (2D) array of integers, where the path is based on the values of elements in the array. When an element…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 20

Free response 2D Arrays
In this question you will write two methods for a class RouteCipher that encrypts (puts into a coded form) a message by changing the order of the characters in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 11 of 50
Page 2 of 5