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,341–2,350 of 3,140
  1. 2341
  2. 2342
  3. 2343
  4. 2344
  5. 2345
  6. 2346
  7. 2347
  8. 2348
  9. 2349
  10. 2350

Question 2341

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 2342

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 2343

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 2344

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 2345

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 2346

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 2347

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 2348

Free response Unit 4: Data Collections
This question involves reasoning about one-dimensional and two-dimensional arrays of integers. You will write three static methods, all of which are in a single…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2349

Free response Unit 4: Data Collections
A two-dimensional array of integers in which most elements are zero is called a sparse array. Because most elements have a value of zero, memory can be saved by…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2350

Free response Unit 4: Data Collections
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 2,341 of 3,140
Page 235 of 314