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 1–10 of 50
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10

Question 1

Free response 2D Arrays
A rectangular two-dimensional (2D) array named map represents an area where treasures are hidden. The element map[r][c] represents the object at row r and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2

Free response 2D Arrays
This question involves reasoning about arrays of integers. You will write two static methods, both of which are in a class named ArrayTester. public class…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 3

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 4

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 5

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 6

Free response 2D Arrays
The colors of the pixels on a TV or computer screen are made by combining different quantities of red, green, and blue light. Each of the three colors is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 7

Free response 2D Arrays
A hex grid is a type of two-dimensional (2-D) map used by many games to represent the area that tokens, ships, robots, or other types of game pieces can move…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 8

Free response 2D Arrays
This question involves a two-dimensional array of integers that represents a collection of randomly generated data. A partial declaration of the Data class is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 9

Free response 2D Arrays
A puzzle-solving competition is held in a large hall with a two-dimensional arrangement of contestants. Each rectangle below represents one contestant. A…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 10

Free response 2D Arrays
Consider the problem of keeping track of the available seats in a theater. Theater seats can be represented with a two-dimensional array of integers, where a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1 of 50
Page 1 of 5