Verityprep
Question Bank

AP® Computer Science A FRQ Practice: Free-Response Questions with Solutions

Work through AP Computer Science A free-response questions unit by unit, 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 191–200 of 329
  1. 191
  2. 192
  3. 193
  4. 194
  5. 195
  6. 196
  7. 197
  8. 198
  9. 199
  10. 200

Question 191

Free response Unit 4: Data Collections
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 192

Free response Unit 4: Data Collections
A statistician is studying sequences of numbers obtained by repeatedly tossing a six-sided number cube. On each side of the number cube is a single number in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 193

Free response Unit 4: Data Collections
An electric car that runs on batteries must be periodically recharged for a certain number of hours. The battery technology in the car requires that the charge…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 194

Free response Unit 4: Data Collections
A game uses square tiles that have numbers on their sides. Each tile is labeled with a number on each of its four sides and may be rotated clockwise, as…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 195

Free response Unit 4: Data Collections
This question involves reasoning about pairs of words that are represented by the following WordPair class. public class WordPair { /** Constructs a WordPair…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 196

Free response Unit 4: Data Collections
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 197

Free response Unit 4: Data Collections
Consider the following partial declaration for a WordScrambler class. The constructor for the WordScrambler class takes an even-length array of String objects…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 198

Free response Unit 4: Data Collections
An array of positive integer values has the mountain property if the elements are ordered such that successive values increase until a maximum value (the peak…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 199

Free response Unit 4: Data Collections
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 200

Free response Unit 4: Data Collections
A school district would like to get some statistics on its students' standardized test scores. Scores will be represented as objects of the following ScoreInfo…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 191 of 329
Page 20 of 33