Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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 2,331–2,340 of 3,140
  1. 2331
  2. 2332
  3. 2333
  4. 2334
  5. 2335
  6. 2336
  7. 2337
  8. 2338
  9. 2339
  10. 2340

Question 2331

Multiple choice Unit 4: Data Collections
What is closest to the maximum…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2332

Multiple choice Unit 4: Data Collections
For large n and constant-cost comparisons, order these by average running-time growth: I…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2333

Multiple choice Unit 4: Data Collections
In a Hi-Lo guessing game, a uniformly selected integer lies in1..100. Each incorrect guess receives truthful higher/lower…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2334

Multiple choice Unit 4: Data Collections
In the same1..100 game, the computer tests1,2,... and must actually…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2335

Multiple choice Unit 4: Data Collections
A target is uniformly distributed over1..100. Sequential search submits1,2,...…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2336

Free response Unit 4: Data Collections
The PR2004 is a robot that automatically gathers toys and other items scattered in a tiled hallway. A tiled hallway has a wall at each end and consists of a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2337

Free response Unit 4: Data Collections
This question involves reasoning about an array of integers with no duplicate values. An inversion is a pair of values in an array where a larger value appears…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2338

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 2339

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 2340

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 2,331 of 3,140
Page 234 of 314