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 251–260 of 329
  1. 251
  2. 252
  3. 253
  4. 254
  5. 255
  6. 256
  7. 257
  8. 258
  9. 259
  10. 260

Question 251

Free response Unit 4: Data Collections
An opening and a closing delimiter are distinct nonempty strings. Input tokens contain either one exact delimiter or ordinary text. Balanced delimiters never…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 252

Free response Unit 4: Data Collections
A high school club maintains information about its members in a MemberInfo object. A MemberInfo object stores a club member's name, year of graduation, and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 253

Free response Unit 4: Data Collections
Users of a website are asked to provide a review of the website at the end of each visit. Each review, represented by an object of the Review class, consists of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 254

Free response Unit 4: Data Collections
This question involves the analysis of weather data. The following WeatherData class has an instance variable, temperatures, which contains the daily high…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 255

Free response Unit 4: Data Collections
This question involves pieces of candy in a box. The Candy class represents a single piece of candy. public class Candy { / * * Returns a String representing…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 256

Free response Unit 4: Data Collections
This question involves manipulation of one-dimensional and two-dimensional arrays. In part (a), you will write a method to shift the elements of a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 257

Free response Unit 4: Data Collections
GapInserter receives a strictly increasing ArrayList . Whenever two ORIGINAL consecutive values differ by exactly2, add the missing integer between them. Larger…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 258

Free response Unit 4: Data Collections
UniqueWordAnalyzer processes nonempty lowercase comments. Words are separated by single spaces; each comment contains at least one word. public class…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 259

Free response Unit 4: Data Collections
Highway is a rectangular nonempty int matrix: rows are lanes, columns are positions. A1 is a car and a0 an empty position. Cars move right; forward movement…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 260

Free response Unit 4: Data Collections
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 251 of 329
Page 26 of 33